[freebox] Ignore disabled things (#12683)

* [freebox] Ignore disabled things

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
This commit is contained in:
lolodomo 2022-05-05 19:55:16 +02:00 committed by GitHub
parent 60cbfad5ac
commit 4180eac57c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);