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: Michael Schmidt <[email protected]>
  • Loading branch information
digitaldan authored and mischmidt83 committed Jan 9, 2022
1 parent a6534d7 commit 5cc5188
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 5cc5188

Please sign in to comment.