From a9d7ac7f658490ca246ecf4daa1f4826a00448e3 Mon Sep 17 00:00:00 2001 From: epenet Date: Tue, 30 Nov 2021 06:48:33 +0000 Subject: [PATCH] Use dataclass properties in system_bridge discovery --- 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 ef3c1ccd2e4052..26ccf83c345512 100644 --- a/homeassistant/components/system_bridge/config_flow.py +++ b/homeassistant/components/system_bridge/config_flow.py @@ -151,7 +151,7 @@ async def async_step_zeroconf( 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")