[insteon] delay setting state of network to UNKNOWN (#10620)
Signed-off-by: Rob Nielsen <rob.nielsen@yahoo.com>
This commit is contained in:
parent
a2084e746a
commit
ca3ee153c4
@ -78,7 +78,6 @@ public class InsteonNetworkHandler extends BaseBridgeHandler {
|
|||||||
public void initialize() {
|
public void initialize() {
|
||||||
logger.debug("Starting Insteon bridge");
|
logger.debug("Starting Insteon bridge");
|
||||||
config = getConfigAs(InsteonNetworkConfiguration.class);
|
config = getConfigAs(InsteonNetworkConfiguration.class);
|
||||||
updateStatus(ThingStatus.UNKNOWN);
|
|
||||||
|
|
||||||
scheduler.execute(() -> {
|
scheduler.execute(() -> {
|
||||||
InsteonNetworkConfiguration config = this.config;
|
InsteonNetworkConfiguration config = this.config;
|
||||||
@ -99,6 +98,7 @@ public class InsteonNetworkHandler extends BaseBridgeHandler {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
insteonBinding = new InsteonBinding(this, config, serialPortManager, scheduler);
|
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.
|
// 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
|
// wait SETTLE_TIME_IN_SECONDS to start then check every second afterwards until it has been at
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user