Use dataclass properties in system_bridge discovery (#60576)

Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
epenet 2021-11-30 08:11:56 +01:00 committed by GitHub
parent b40dc6c271
commit b4d17e1fad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -151,7 +151,7 @@ class ConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
self, discovery_info: zeroconf.ZeroconfServiceInfo
) -> FlowResult:
"""Handle zeroconf discovery."""
properties = discovery_info[zeroconf.ATTR_PROPERTIES]
properties = discovery_info.properties
host = properties.get("ip")
uuid = properties.get("uuid")