From f085dc02a1fc76dc650f5c843556dd1138aed70b Mon Sep 17 00:00:00 2001 From: Matthew Skinner Date: Sun, 14 Mar 2021 06:25:08 +1100 Subject: [PATCH] [espmilighthub] Fix things stay initializing (#10315) Fixed bug caused by asking a bridge thing for its bridge's UID instead of just the UID. Signed-off-by: Matthew Skinner --- .../espmilighthub/internal/handler/EspMilightHubHandler.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/bundles/org.openhab.binding.mqtt.espmilighthub/src/main/java/org/openhab/binding/mqtt/espmilighthub/internal/handler/EspMilightHubHandler.java b/bundles/org.openhab.binding.mqtt.espmilighthub/src/main/java/org/openhab/binding/mqtt/espmilighthub/internal/handler/EspMilightHubHandler.java index 6182f792664..c2566c264cc 100644 --- a/bundles/org.openhab.binding.mqtt.espmilighthub/src/main/java/org/openhab/binding/mqtt/espmilighthub/internal/handler/EspMilightHubHandler.java +++ b/bundles/org.openhab.binding.mqtt.espmilighthub/src/main/java/org/openhab/binding/mqtt/espmilighthub/internal/handler/EspMilightHubHandler.java @@ -347,10 +347,7 @@ public class EspMilightHubHandler extends BaseThingHandler implements MqttConnec "Bridge is missing or offline, you need to setup a working MQTT broker first."); return; } - ThingUID thingUID = localBridge.getBridgeUID(); - if (thingUID == null) { - return; - } + ThingUID thingUID = localBridge.getUID(); Thing thing = thingRegistry.get(thingUID); if (thing == null) { updateStatus(ThingStatus.OFFLINE, ThingStatusDetail.BRIDGE_UNINITIALIZED,