mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-02-04 03:14:07 +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,6 +308,7 @@ 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()) {
|
||||||
|
if (th.isEnabled()) {
|
||||||
String deviceId = th.getUID().getId();
|
String deviceId = th.getUID().getId();
|
||||||
OrbitBhyveSprinklerHandler handler = (OrbitBhyveSprinklerHandler) th.getHandler();
|
OrbitBhyveSprinklerHandler handler = (OrbitBhyveSprinklerHandler) th.getHandler();
|
||||||
for (OrbitBhyveDevice device : devices) {
|
for (OrbitBhyveDevice device : devices) {
|
||||||
@ -317,6 +318,7 @@ public class OrbitBhyveBridgeHandler extends ConfigStatusBridgeHandler {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private void updateDeviceStatus(@Nullable OrbitBhyveDevice device, @Nullable OrbitBhyveSprinklerHandler handler) {
|
private void updateDeviceStatus(@Nullable OrbitBhyveDevice device, @Nullable OrbitBhyveSprinklerHandler handler) {
|
||||||
if (device != null && handler != null) {
|
if (device != null && handler != null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user