mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
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
@ -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…
x
Reference in New Issue
Block a user