Make sure bridge status is set when returning from initialize (#11289)

Signed-off-by: Kai Kreuzer <kai@openhab.org>
This commit is contained in:
Kai Kreuzer 2021-09-25 19:10:12 +02:00 committed by GitHub
parent f4816f5449
commit 277c65f43a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -685,6 +685,8 @@ public class HueBridgeHandler extends ConfigStatusBridgeHandler implements HueCl
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() {