Use dataclass properties in freebox discovery (#60635)
Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
parent
a90ef488a1
commit
30bb2c82c6
1 changed files with 1 additions and 1 deletions
|
@ -111,7 +111,7 @@ class FreeboxFlowHandler(config_entries.ConfigFlow, domain=DOMAIN):
|
||||||
self, discovery_info: zeroconf.ZeroconfServiceInfo
|
self, discovery_info: zeroconf.ZeroconfServiceInfo
|
||||||
) -> FlowResult:
|
) -> FlowResult:
|
||||||
"""Initialize flow from zeroconf."""
|
"""Initialize flow from zeroconf."""
|
||||||
zeroconf_properties = discovery_info[zeroconf.ATTR_PROPERTIES]
|
zeroconf_properties = discovery_info.properties
|
||||||
host = zeroconf_properties["api_domain"]
|
host = zeroconf_properties["api_domain"]
|
||||||
port = zeroconf_properties["https_port"]
|
port = zeroconf_properties["https_port"]
|
||||||
return await self.async_step_user({CONF_HOST: host, CONF_PORT: port})
|
return await self.async_step_user({CONF_HOST: host, CONF_PORT: port})
|
||||||
|
|
Loading…
Add table
Reference in a new issue