]> git.basschouten.com Git - openhab-addons.git/commitdiff
removed (duplicate) refreshDevice() at bridgeStatusChanged (#12502)
authorConte Andrea <andrea@conte.com>
Mon, 21 Mar 2022 18:25:39 +0000 (19:25 +0100)
committerGitHub <noreply@github.com>
Mon, 21 Mar 2022 18:25:39 +0000 (19:25 +0100)
Signed-off-by: Conte Andrea <andrea@conte.com>
bundles/org.openhab.binding.openwebnet/src/main/java/org/openhab/binding/openwebnet/internal/handler/OpenWebNetThermoregulationHandler.java

index c839a98f152e5727a00dfb17e67674360d733ed1..21a0a4ac8eba996b650b30e01290f1a2512e0267 100644 (file)
@@ -44,7 +44,6 @@ import org.openhab.core.thing.ChannelUID;
 import org.openhab.core.thing.Thing;
 import org.openhab.core.thing.ThingStatus;
 import org.openhab.core.thing.ThingStatusDetail;
-import org.openhab.core.thing.ThingStatusInfo;
 import org.openhab.core.thing.ThingTypeUID;
 import org.openhab.core.types.Command;
 import org.openhab.core.types.UnDefType;
@@ -122,15 +121,6 @@ public class OpenWebNetThermoregulationHandler extends OpenWebNetThingHandler {
         }
     }
 
-    @Override
-    public void bridgeStatusChanged(ThingStatusInfo bridgeStatusInfo) {
-        super.bridgeStatusChanged(bridgeStatusInfo);
-        // when the bridge is ONLINE request for thing states (temp, setTemp, fanSpeed...)
-        if (bridgeStatusInfo.getStatus().equals(ThingStatus.ONLINE)) {
-            refreshDevice(false);
-        }
-    }
-
     @Override
     protected void handleChannelCommand(ChannelUID channel, Command command) {
         switch (channel.getId()) {