Skip to content

Commit

Permalink
Make sure bridge status is set when returning from initialize (openha…
Browse files Browse the repository at this point in the history
…b#11289)

Signed-off-by: Kai Kreuzer <[email protected]>
  • Loading branch information
kaikreuzer authored Sep 25, 2021
1 parent c5b65f4 commit 74f1d83
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -685,6 +685,8 @@ public void initialize() {
hueBridge = new HueBridge(ip, hueBridgeConfig.getPort(), hueBridgeConfig.getProtocol(), scheduler);
hueBridge.setTimeout(5000);

updateStatus(ThingStatus.UNKNOWN);

// Try a first connection that will fail, then try to authenticate,
// and finally change the bridge status to ONLINE
initJob = scheduler.submit(new PollingRunnable() {
Expand Down

0 comments on commit 74f1d83

Please sign in to comment.