From 30bb2c82c67660ebbeec8287bf9db0b7829a91e2 Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Tue, 30 Nov 2021 16:28:02 +0100 Subject: [PATCH] Use dataclass properties in freebox discovery (#60635) Co-authored-by: epenet --- homeassistant/components/freebox/config_flow.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/freebox/config_flow.py b/homeassistant/components/freebox/config_flow.py index 76b99dc31d2..f0a7801823e 100644 --- a/homeassistant/components/freebox/config_flow.py +++ b/homeassistant/components/freebox/config_flow.py @@ -111,7 +111,7 @@ class FreeboxFlowHandler(config_entries.ConfigFlow, domain=DOMAIN): self, discovery_info: zeroconf.ZeroconfServiceInfo ) -> FlowResult: """Initialize flow from zeroconf.""" - zeroconf_properties = discovery_info[zeroconf.ATTR_PROPERTIES] + zeroconf_properties = discovery_info.properties host = zeroconf_properties["api_domain"] port = zeroconf_properties["https_port"] return await self.async_step_user({CONF_HOST: host, CONF_PORT: port})