Use dataclass properties in nam discovery (#60596)
Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
parent
64afe738cc
commit
5003a1515b
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue