From e019d22affda69ea36659278f0097e1814460f15 Mon Sep 17 00:00:00 2001 From: Zach Varberg Date: Fri, 3 Feb 2017 16:22:20 -0600 Subject: [PATCH] Fix typo on toInteger zigbee dimmer power This relates to: https://smartthings.atlassian.net/browse/DPROT-238 --- .../zigbee-dimmer-power.src/zigbee-dimmer-power.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devicetypes/smartthings/zigbee-dimmer-power.src/zigbee-dimmer-power.groovy b/devicetypes/smartthings/zigbee-dimmer-power.src/zigbee-dimmer-power.groovy index 2b34df5c9bc..a781e777149 100644 --- a/devicetypes/smartthings/zigbee-dimmer-power.src/zigbee-dimmer-power.groovy +++ b/devicetypes/smartthings/zigbee-dimmer-power.src/zigbee-dimmer-power.groovy @@ -97,7 +97,7 @@ def on() { } def setLevel(value) { - zigbee.setLevel(value) + (value?.ToInteger() > 0 ? zigbee.on() : []) + zigbee.setLevel(value) + (value?.toInteger() > 0 ? zigbee.on() : []) } /**