diff --git a/custom_components/yandex_station/core/yandex_quasar.py b/custom_components/yandex_station/core/yandex_quasar.py index dde95c7..f964dcf 100644 --- a/custom_components/yandex_station/core/yandex_quasar.py +++ b/custom_components/yandex_station/core/yandex_quasar.py @@ -159,7 +159,9 @@ async def init(self): for house in resp["households"]: if "sharing_info" in house: continue - self.devices += house["all"] + self.devices.extend( + {**device, "house_name": house["name"]} for device in house["all"] + ) await self.load_scenarios() diff --git a/custom_components/yandex_station/hass/hass_utils.py b/custom_components/yandex_station/hass/hass_utils.py index a23eb80..d238a47 100644 --- a/custom_components/yandex_station/hass/hass_utils.py +++ b/custom_components/yandex_station/hass/hass_utils.py @@ -15,7 +15,7 @@ from ..vacuum import INCLUDE_TYPES as VACUUM from ..water_heater import INCLUDE_TYPES as WATER_HEATER -INCLUDE_KEYS = ("id", "name", "type", "room_name", "skill_id") +INCLUDE_KEYS = ("id", "name", "type", "room_name", "skill_id", "house_name") INCLUDE_TYPES_UNKNOWN = ( "devices.types.camera",