GladysProject/Gladys

View on GitHub
server/services/broadlink/lib/commands/broadlink.getPeripherals.js

Summary

Maintainability
A
0 mins
Test Coverage
/**
 * @description Returns stored peripherals.
 * @returns {Promise} Discovered peripherals.
 * @example
 * await gladys.broadlink.getPeripherals();
 */
async function getPeripherals() {
  await this.init();
  return Object.values(this.peripherals);
}

module.exports = {
  getPeripherals,
};