mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-25 14:55:55 +01:00
[myq] Fix for controlling lights (#11765)
Signed-off-by: Dan Cunningham <dan@digitaldan.com>
This commit is contained in:
parent
75238b8495
commit
387f8a3a0d
@ -62,8 +62,7 @@ public class MyQLampHandler extends BaseThingHandler implements MyQDeviceHandler
|
||||
if (bridge != null && localDevice != null) {
|
||||
BridgeHandler handler = bridge.getHandler();
|
||||
if (handler != null) {
|
||||
((MyQAccountHandler) handler).sendLampAction(localDevice,
|
||||
command == OnOffType.ON ? "turnon" : "turnoff");
|
||||
((MyQAccountHandler) handler).sendLampAction(localDevice, command == OnOffType.ON ? "on" : "off");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user