[insteon] change .equals() to == for ThingStatus equality check (#12826)

Signed-off-by: Rob Nielsen <rob.nielsen@yahoo.com>
This commit is contained in:
robnielsen 2022-05-27 09:12:04 -05:00 committed by GitHub
parent 88e7ba3774
commit 53db5c4822
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);