Skip to content

Commit

Permalink
Fixes #248 issue with clockwise/counterClockwise
Browse files Browse the repository at this point in the history
  • Loading branch information
lprhodes committed Feb 12, 2018
1 parent 32e8bec commit 8d8706e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion accessories/fan.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class FanAccessory extends BroadlinkRMAccessory {
const services = super.getServices();
const { config, data, name } = this;
let { showSwingMode, showRotationDirection, showV1Fan, showV2Fan } = config;
const { on, off, swingToggle } = data;
const { on, off, clockwise, counterClockwise, swingToggle } = data;

if (showV2Fan !== false) showV2Fan = true
if (showSwingMode !== false) showSwingMode = true
Expand Down

0 comments on commit 8d8706e

Please sign in to comment.