[insteon] change .equals() to == for ThingStatus equality check (#12826)
Signed-off-by: Rob Nielsen <rob.nielsen@yahoo.com>
This commit is contained in:
parent
88e7ba3774
commit
53db5c4822
@ -415,7 +415,7 @@ public class InsteonDeviceHandler extends BaseThingHandler {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void handleCommand(ChannelUID channelUID, Command command) {
|
public void handleCommand(ChannelUID channelUID, Command command) {
|
||||||
if (ThingStatus.ONLINE.equals(getThing().getStatus())) {
|
if (ThingStatus.ONLINE == getThing().getStatus()) {
|
||||||
logger.debug("channel {} was triggered with the command {}", channelUID.getAsString(), command);
|
logger.debug("channel {} was triggered with the command {}", channelUID.getAsString(), command);
|
||||||
|
|
||||||
getInsteonBinding().sendCommand(channelUID.getAsString(), command);
|
getInsteonBinding().sendCommand(channelUID.getAsString(), command);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user