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 <kai@openhab.org>
  • Loading branch information
kaikreuzer authored and thinkingstone committed Nov 7, 2021
1 parent e3dcc40 commit b7f2edb
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 b7f2edb

Please sign in to comment.