Skip to content

Commit

Permalink
Fix import devices with same name
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexxIT committed Apr 6, 2024
1 parent 603eae9 commit 3493a7a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions custom_components/yandex_station/hass/hass_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,10 @@ def incluce_devices(

devices = []

for conf in includes:
for device in quasar.devices:
# первый цикл по devices, второй по include, чтоб одинаковые include работали на
# разные devices
for device in quasar.devices:
for conf in includes:
if isinstance(conf, str):
if conf == device["id"] or conf == device["name"]:
conf = build_include_config(device)
Expand Down

0 comments on commit 3493a7a

Please sign in to comment.