Skip to content

Commit

Permalink
removed (duplicate) refreshDevice() at bridgeStatusChanged (openhab#1…
Browse files Browse the repository at this point in the history
…2502)

Signed-off-by: Conte Andrea <andrea@conte.com>
Signed-off-by: Nick Waterton <n.waterton@outlook.com>
  • Loading branch information
aconte80 authored and NickWaterton committed Apr 27, 2022
1 parent e4a4bd2 commit 1930260
Showing 1 changed file with 0 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
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;
Expand Down Expand Up @@ -122,15 +121,6 @@ public void initialize() {
}
}

@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()) {
Expand Down

0 comments on commit 1930260

Please sign in to comment.