Skip to content

Commit

Permalink
Fix complex filters for include
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexxIT committed Jul 14, 2024
1 parent 4a49bf4 commit 1d72dab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/yandex_station/hass/hass_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def incluce_devices(
devices.append((quasar, device, conf))
break
elif isinstance(conf, dict):
if any(conf[k] == device.get(k) for k in INCLUDE_KEYS if k in conf):
if all(conf[k] == device.get(k) for k in INCLUDE_KEYS if k in conf):
devices.append((quasar, device, conf))
break

Expand Down

0 comments on commit 1d72dab

Please sign in to comment.