From 53db5c48227753f5beadf0b2b51db6b76b5d4990 Mon Sep 17 00:00:00 2001 From: robnielsen Date: Fri, 27 May 2022 09:12:04 -0500 Subject: [PATCH] [insteon] change .equals() to == for ThingStatus equality check (#12826) Signed-off-by: Rob Nielsen --- .../binding/insteon/internal/handler/InsteonDeviceHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundles/org.openhab.binding.insteon/src/main/java/org/openhab/binding/insteon/internal/handler/InsteonDeviceHandler.java b/bundles/org.openhab.binding.insteon/src/main/java/org/openhab/binding/insteon/internal/handler/InsteonDeviceHandler.java index d4046b66bf7..14d7db070e8 100644 --- a/bundles/org.openhab.binding.insteon/src/main/java/org/openhab/binding/insteon/internal/handler/InsteonDeviceHandler.java +++ b/bundles/org.openhab.binding.insteon/src/main/java/org/openhab/binding/insteon/internal/handler/InsteonDeviceHandler.java @@ -415,7 +415,7 @@ public class InsteonDeviceHandler extends BaseThingHandler { @Override 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); getInsteonBinding().sendCommand(channelUID.getAsString(), command);