Skip to content

Commit

Permalink
Fix for debug option not working
Browse files Browse the repository at this point in the history
  • Loading branch information
lprhodes committed Mar 22, 2018
1 parent bc89dc6 commit 99df36e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion accessories/accessory.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit 99df36e

Please sign in to comment.