server/services/broadlink/lib/commands/broadlink.buildPeripheral.js
Function buildPeripheral
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function buildPeripheral(broadlinkDevice) {
const deviceMapper = this.loadMapper(broadlinkDevice);
if (!deviceMapper) {
return null;