From 8d8706eccf91f014a30afae3b9a04ddd4b9fb170 Mon Sep 17 00:00:00 2001 From: Luke Rhodes Date: Mon, 12 Feb 2018 14:30:52 +1100 Subject: [PATCH] Fixes #248 issue with clockwise/counterClockwise --- accessories/fan.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/accessories/fan.js b/accessories/fan.js index 2fa9bd74..1f6f0b86 100644 --- a/accessories/fan.js +++ b/accessories/fan.js @@ -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