mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
Use dataclass properties in tado discovery (#60641)
Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
parent
0a1f73e3f7
commit
071385e8d2
@ -88,8 +88,7 @@ class ConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
|
|||||||
"""Handle HomeKit discovery."""
|
"""Handle HomeKit discovery."""
|
||||||
self._async_abort_entries_match()
|
self._async_abort_entries_match()
|
||||||
properties = {
|
properties = {
|
||||||
key.lower(): value
|
key.lower(): value for (key, value) in discovery_info.properties.items()
|
||||||
for (key, value) in discovery_info[zeroconf.ATTR_PROPERTIES].items()
|
|
||||||
}
|
}
|
||||||
await self.async_set_unique_id(properties[zeroconf.ATTR_PROPERTIES_ID])
|
await self.async_set_unique_id(properties[zeroconf.ATTR_PROPERTIES_ID])
|
||||||
self._abort_if_unique_id_configured()
|
self._abort_if_unique_id_configured()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user