]> git.basschouten.com Git - openhab-addons.git/commitdiff
[insteon] delay setting state of network to UNKNOWN (#10620)
authorrobnielsen <rob.nielsen@yahoo.com>
Sun, 9 May 2021 18:22:13 +0000 (13:22 -0500)
committerGitHub <noreply@github.com>
Sun, 9 May 2021 18:22:13 +0000 (20:22 +0200)
Signed-off-by: Rob Nielsen <rob.nielsen@yahoo.com>
bundles/org.openhab.binding.insteon/src/main/java/org/openhab/binding/insteon/internal/handler/InsteonNetworkHandler.java

index acff1898fc39145ab9dfe7ba14d25a9fc7f718a2..708693dbb38b518acd1ade17bac602979917266e 100644 (file)
@@ -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