removed (duplicate) refreshDevice() at bridgeStatusChanged (#12502)

Signed-off-by: Conte Andrea <andrea@conte.com>
This commit is contained in:
Conte Andrea 2022-03-21 19:25:39 +01:00 committed by GitHub
parent f21bbc5945
commit 85a5eb3a87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 10 deletions

View 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()) {