mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-25 14:55:55 +01:00
[orbitbhyve] do not update status of a disabled sprinker (#12679)
Signed-off-by: Ondrej Pecta <opecta@gmail.com>
This commit is contained in:
parent
cc3ebeffdd
commit
a37a119ff1
@ -308,11 +308,13 @@ public class OrbitBhyveBridgeHandler extends ConfigStatusBridgeHandler {
|
|||||||
private void updateAllStatuses() {
|
private void updateAllStatuses() {
|
||||||
List<OrbitBhyveDevice> devices = getDevices();
|
List<OrbitBhyveDevice> devices = getDevices();
|
||||||
for (Thing th : getThing().getThings()) {
|
for (Thing th : getThing().getThings()) {
|
||||||
String deviceId = th.getUID().getId();
|
if (th.isEnabled()) {
|
||||||
OrbitBhyveSprinklerHandler handler = (OrbitBhyveSprinklerHandler) th.getHandler();
|
String deviceId = th.getUID().getId();
|
||||||
for (OrbitBhyveDevice device : devices) {
|
OrbitBhyveSprinklerHandler handler = (OrbitBhyveSprinklerHandler) th.getHandler();
|
||||||
if (deviceId.equals(th.getUID().getId())) {
|
for (OrbitBhyveDevice device : devices) {
|
||||||
updateDeviceStatus(device, handler);
|
if (deviceId.equals(th.getUID().getId())) {
|
||||||
|
updateDeviceStatus(device, handler);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user