From 5003a1515b04849625a9085d63926c2b9b0280cb Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Tue, 30 Nov 2021 09:36:41 +0100 Subject: [PATCH] Use dataclass properties in nam discovery (#60596) Co-authored-by: epenet --- homeassistant/components/nam/config_flow.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/nam/config_flow.py b/homeassistant/components/nam/config_flow.py index 00df0e0bf90..82032ac306e 100644 --- a/homeassistant/components/nam/config_flow.py +++ b/homeassistant/components/nam/config_flow.py @@ -126,7 +126,7 @@ class NAMFlowHandler(config_entries.ConfigFlow, domain=DOMAIN): self, discovery_info: zeroconf.ZeroconfServiceInfo ) -> FlowResult: """Handle zeroconf discovery.""" - self.host = discovery_info[zeroconf.ATTR_HOST] + self.host = discovery_info.host self.context["title_placeholders"] = {"host": self.host} # Do not probe the device if the host is already configured