[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
|
// The update of channels is delegated to each thing handler
|
||||||
for (Thing thing : getThing().getThings()) {
|
for (Thing thing : getThing().getThings()) {
|
||||||
|
if (!thing.isEnabled()) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
ThingHandler handler = thing.getHandler();
|
ThingHandler handler = thing.getHandler();
|
||||||
if (handler instanceof FreeboxThingHandler) {
|
if (handler instanceof FreeboxThingHandler) {
|
||||||
((FreeboxThingHandler) handler).updateNetInfo(hosts);
|
((FreeboxThingHandler) handler).updateNetInfo(hosts);
|
||||||
@ -512,6 +515,9 @@ public class FreeboxHandler extends BaseBridgeHandler {
|
|||||||
|
|
||||||
// The update of channels is delegated to each thing handler
|
// The update of channels is delegated to each thing handler
|
||||||
for (Thing thing : getThing().getThings()) {
|
for (Thing thing : getThing().getThings()) {
|
||||||
|
if (!thing.isEnabled()) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
ThingHandler handler = thing.getHandler();
|
ThingHandler handler = thing.getHandler();
|
||||||
if (handler instanceof FreeboxThingHandler) {
|
if (handler instanceof FreeboxThingHandler) {
|
||||||
((FreeboxThingHandler) handler).updateAirPlayDevice(devices);
|
((FreeboxThingHandler) handler).updateAirPlayDevice(devices);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user