mirror of
https://github.com/home-assistant/core.git
synced 2025-07-24 13:47:35 +00:00
fix: get_devices only checks for the first type (#103583)
This commit is contained in:
parent
b636a4d5cf
commit
5b43351807
@ -28,9 +28,10 @@ def setup_platform(
|
||||
|
||||
data = hass.data[LUPUSEC_DOMAIN]
|
||||
|
||||
devices = []
|
||||
device_types = [CONST.TYPE_SWITCH]
|
||||
|
||||
for device in data.lupusec.get_devices(generic_type=CONST.TYPE_SWITCH):
|
||||
devices = []
|
||||
for device in data.lupusec.get_devices(generic_type=device_types):
|
||||
devices.append(LupusecSwitch(data, device))
|
||||
|
||||
add_entities(devices)
|
||||
|
Loading…
x
Reference in New Issue
Block a user