Skip to content

Commit

Permalink
[espmilighthub] Fix things stay initializing (openhab#10315)
Browse files Browse the repository at this point in the history
Fixed bug caused by asking a bridge thing for its bridge's UID instead of just the UID.

Signed-off-by: Matthew Skinner <[email protected]>
  • Loading branch information
Skinah authored and thinkingstone committed Nov 7, 2021
1 parent 97582fb commit ef03a80
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -347,10 +347,7 @@ public void connectMQTT() {
"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,
Expand Down

0 comments on commit ef03a80

Please sign in to comment.