mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-25 14:55:55 +01:00
[freebox] Ignore disabled things (#12683)
* [freebox] Ignore disabled things Signed-off-by: Laurent Garnier <lg.hc@free.fr>
This commit is contained in:
parent
60cbfad5ac
commit
4180eac57c
@ -490,6 +490,9 @@ public class FreeboxHandler extends BaseBridgeHandler {
|
||||
|
||||
// The update of channels is delegated to each thing handler
|
||||
for (Thing thing : getThing().getThings()) {
|
||||
if (!thing.isEnabled()) {
|
||||
continue;
|
||||
}
|
||||
ThingHandler handler = thing.getHandler();
|
||||
if (handler instanceof FreeboxThingHandler) {
|
||||
((FreeboxThingHandler) handler).updateNetInfo(hosts);
|
||||
@ -512,6 +515,9 @@ public class FreeboxHandler extends BaseBridgeHandler {
|
||||
|
||||
// The update of channels is delegated to each thing handler
|
||||
for (Thing thing : getThing().getThings()) {
|
||||
if (!thing.isEnabled()) {
|
||||
continue;
|
||||
}
|
||||
ThingHandler handler = thing.getHandler();
|
||||
if (handler instanceof FreeboxThingHandler) {
|
||||
((FreeboxThingHandler) handler).updateAirPlayDevice(devices);
|
||||
|
Loading…
Reference in New Issue
Block a user