Skip to content

Commit

Permalink
[myq] Fix for controlling lights (openhab#11765)
Browse files Browse the repository at this point in the history
Signed-off-by: Dan Cunningham <[email protected]>
Signed-off-by: Andras Uhrin <[email protected]>
  • Loading branch information
digitaldan authored and andrasU committed Nov 12, 2022
1 parent 234e6ce commit 1455a5a
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@ public void handleCommand(ChannelUID channelUID, Command command) {
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");
}
}
}
Expand Down

0 comments on commit 1455a5a

Please sign in to comment.