diff --git a/bundles/org.openhab.binding.mqtt.espmilighthub/src/main/java/org/openhab/binding/mqtt/espmilighthub/internal/handler/EspMilightHubHandler.java b/bundles/org.openhab.binding.mqtt.espmilighthub/src/main/java/org/openhab/binding/mqtt/espmilighthub/internal/handler/EspMilightHubHandler.java index 6182f79266451..c2566c264cc9a 100644 --- a/bundles/org.openhab.binding.mqtt.espmilighthub/src/main/java/org/openhab/binding/mqtt/espmilighthub/internal/handler/EspMilightHubHandler.java +++ b/bundles/org.openhab.binding.mqtt.espmilighthub/src/main/java/org/openhab/binding/mqtt/espmilighthub/internal/handler/EspMilightHubHandler.java @@ -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,