Skip to content

Commit

Permalink
[insteon] delay setting state of network to UNKNOWN (openhab#10620)
Browse files Browse the repository at this point in the history
Signed-off-by: Rob Nielsen <rob.nielsen@yahoo.com>
  • Loading branch information
robnielsen authored and computergeek1507 committed Jul 13, 2021
1 parent 12ce34c commit 2a48b0f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ public void handleCommand(ChannelUID channelUID, Command command) {
public void initialize() {
logger.debug("Starting Insteon bridge");
config = getConfigAs(InsteonNetworkConfiguration.class);
updateStatus(ThingStatus.UNKNOWN);

scheduler.execute(() -> {
InsteonNetworkConfiguration config = this.config;
Expand All @@ -99,6 +98,7 @@ public void initialize() {
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
Expand Down

0 comments on commit 2a48b0f

Please sign in to comment.