From 9bd140ab0bf70f886d8d8f5b35e1ab66a3f84a75 Mon Sep 17 00:00:00 2001 From: Kai Kreuzer Date: Wed, 22 Sep 2021 21:30:01 +0200 Subject: [PATCH] Make sure bridge status is set when returning from initialize Signed-off-by: Kai Kreuzer --- .../openhab/binding/hue/internal/handler/HueBridgeHandler.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bundles/org.openhab.binding.hue/src/main/java/org/openhab/binding/hue/internal/handler/HueBridgeHandler.java b/bundles/org.openhab.binding.hue/src/main/java/org/openhab/binding/hue/internal/handler/HueBridgeHandler.java index c4baa76feb5a0..0a9a577c9e8b1 100644 --- a/bundles/org.openhab.binding.hue/src/main/java/org/openhab/binding/hue/internal/handler/HueBridgeHandler.java +++ b/bundles/org.openhab.binding.hue/src/main/java/org/openhab/binding/hue/internal/handler/HueBridgeHandler.java @@ -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() {