]> git.basschouten.com Git - openhab-addons.git/commitdiff
[espmilighthub] Fix things stay initializing (#10315)
authorMatthew Skinner <matt@pcmus.com>
Sat, 13 Mar 2021 19:25:08 +0000 (06:25 +1100)
committerGitHub <noreply@github.com>
Sat, 13 Mar 2021 19:25:08 +0000 (20:25 +0100)
Fixed bug caused by asking a bridge thing for its bridge's UID instead of just the UID.

Signed-off-by: Matthew Skinner <matt@pcmus.com>
bundles/org.openhab.binding.mqtt.espmilighthub/src/main/java/org/openhab/binding/mqtt/espmilighthub/internal/handler/EspMilightHubHandler.java

index 6182f7926645182d49b7be5d83c3b74d6794c104..c2566c264cc9ac9837a6100a565a219d9432e857 100644 (file)
@@ -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,