Add suggested area to nexia (#46776)

This commit is contained in:
J. Nick Koston 2021-02-19 20:01:22 -10:00 committed by GitHub
parent 2807cb1de7
commit 11277faa93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -83,10 +83,12 @@ class NexiaThermostatZoneEntity(NexiaThermostatEntity):
def device_info(self):
"""Return the device_info of the device."""
data = super().device_info
zone_name = self._zone.get_name()
data.update(
{
"identifiers": {(DOMAIN, self._zone.zone_id)},
"name": self._zone.get_name(),
"name": zone_name,
"suggested_area": zone_name,
"via_device": (DOMAIN, self._zone.thermostat.thermostat_id),
}
)