server/services/broadlink/lib/commands/features/broadlink.switch.js
Function buildFeatures
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function buildFeatures(deviceName, deviceExternalId, broadlinkDevice) {
const { TYPE, getEnergy } = broadlinkDevice;
const features = [];
// check for number of switch features