From b4d17e1fad87f38562006644e90a305859d71913 Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Tue, 30 Nov 2021 08:11:56 +0100 Subject: [PATCH] Use dataclass properties in system_bridge discovery (#60576) Co-authored-by: epenet --- homeassistant/components/system_bridge/config_flow.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/system_bridge/config_flow.py b/homeassistant/components/system_bridge/config_flow.py index ef3c1ccd2e4..26ccf83c345 100644 --- a/homeassistant/components/system_bridge/config_flow.py +++ b/homeassistant/components/system_bridge/config_flow.py @@ -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")