[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:
Matthew Skinner 2021-03-14 06:25:08 +11:00 committed by GitHub
parent 493f8c4ebe
commit f085dc02a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 4 deletions

View 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,