[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 <matt@pcmus.com>
This commit is contained in:
parent
493f8c4ebe
commit
f085dc02a1
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue