Skip to content

Commit

Permalink
Change include list priorities
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexxIT committed Apr 6, 2024
1 parent 5e2cf0f commit 6ae9ee6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion custom_components/yandex_station/hass/hass_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ def incluce_devices(
) -> list[tuple[YandexQuasar, dict, dict]]:
quasar: YandexQuasar = hass.data[DOMAIN][config_entry.unique_id]
config: dict = hass.data[DOMAIN][DATA_CONFIG]
includes = config.get(CONF_INCLUDE, []) + config_entry.options.get(CONF_INCLUDE, [])
# config_entry has more priority
includes = config_entry.options.get(CONF_INCLUDE, []) + config.get(CONF_INCLUDE, [])

devices = []

Expand Down

0 comments on commit 6ae9ee6

Please sign in to comment.