[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.");
|
"Bridge is missing or offline, you need to setup a working MQTT broker first.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
ThingUID thingUID = localBridge.getBridgeUID();
|
ThingUID thingUID = localBridge.getUID();
|
||||||
if (thingUID == null) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
Thing thing = thingRegistry.get(thingUID);
|
Thing thing = thingRegistry.get(thingUID);
|
||||||
if (thing == null) {
|
if (thing == null) {
|
||||||
updateStatus(ThingStatus.OFFLINE, ThingStatusDetail.BRIDGE_UNINITIALIZED,
|
updateStatus(ThingStatus.OFFLINE, ThingStatusDetail.BRIDGE_UNINITIALIZED,
|
||||||
|
|
Loading…
Reference in New Issue