From 99df36ec576073900ba09be3fa9d19714d017c48 Mon Sep 17 00:00:00 2001 From: Luke Rhodes Date: Thu, 22 Mar 2018 21:35:30 +1100 Subject: [PATCH] Fix for `debug` option not working --- accessories/accessory.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/accessories/accessory.js b/accessories/accessory.js index 2eb74b07..79aceba6 100644 --- a/accessories/accessory.js +++ b/accessories/accessory.js @@ -9,12 +9,12 @@ const catchDelayCancelError = require('../helpers/catchDelayCancelError'); class BroadlinkRMAccessory extends HomebridgeAccessory { constructor (log, config = {}, serviceManagerType) { - if (config.debug) this.debug = true if (!config.name) config.name = "Unknown Accessory" config.resendDataAfterReload = config.resendHexAfterReload; super(log, config, serviceManagerType); + if (config.debug) this.debug = true this.manufacturer = 'Broadlink';