removed (duplicate) refreshDevice() at bridgeStatusChanged (#12502)
Signed-off-by: Conte Andrea <andrea@conte.com>
This commit is contained in:
parent
f21bbc5945
commit
85a5eb3a87
|
@ -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()) {
|
||||
|
|
Loading…
Reference in New Issue