mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
Fixed bug with all switch devices being excluded (#9555)
This commit is contained in:
parent
0d75cd484b
commit
e2ce1d05ae
@ -27,7 +27,7 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
|
|||||||
|
|
||||||
# Get all regular switches that are not excluded or marked as lights
|
# Get all regular switches that are not excluded or marked as lights
|
||||||
for device in data.abode.get_devices(generic_type=CONST.TYPE_SWITCH):
|
for device in data.abode.get_devices(generic_type=CONST.TYPE_SWITCH):
|
||||||
if data.is_excluded(device) or not data.is_light(device):
|
if data.is_excluded(device) or data.is_light(device):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
devices.append(AbodeSwitch(data, device))
|
devices.append(AbodeSwitch(data, device))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user