From ca3ee153c4b7ac830fce02828c648d1a35ccc217 Mon Sep 17 00:00:00 2001 From: robnielsen Date: Sun, 9 May 2021 13:22:13 -0500 Subject: [PATCH] [insteon] delay setting state of network to UNKNOWN (#10620) Signed-off-by: Rob Nielsen --- .../binding/insteon/internal/handler/InsteonNetworkHandler.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/InsteonNetworkHandler.java b/bundles/org.openhab.binding.insteon/src/main/java/org/openhab/binding/insteon/internal/handler/InsteonNetworkHandler.java index acff1898fc..708693dbb3 100644 --- a/bundles/org.openhab.binding.insteon/src/main/java/org/openhab/binding/insteon/internal/handler/InsteonNetworkHandler.java +++ b/bundles/org.openhab.binding.insteon/src/main/java/org/openhab/binding/insteon/internal/handler/InsteonNetworkHandler.java @@ -78,7 +78,6 @@ public class InsteonNetworkHandler extends BaseBridgeHandler { public void initialize() { logger.debug("Starting Insteon bridge"); config = getConfigAs(InsteonNetworkConfiguration.class); - updateStatus(ThingStatus.UNKNOWN); scheduler.execute(() -> { InsteonNetworkConfiguration config = this.config; @@ -99,6 +98,7 @@ public class InsteonNetworkHandler extends BaseBridgeHandler { return; } insteonBinding = new InsteonBinding(this, config, serialPortManager, scheduler); + updateStatus(ThingStatus.UNKNOWN); // hold off on starting to poll until devices that already are defined as things are added. // wait SETTLE_TIME_IN_SECONDS to start then check every second afterwards until it has been at -- 2.47.3