Use ZeroconfServiceInfo in rainmachine (#60055)
This commit is contained in:
parent
e056f9aa0f
commit
85b37a8532
2 changed files with 7 additions and 6 deletions
|
@ -70,7 +70,7 @@ class RainMachineFlowHandler(config_entries.ConfigFlow, domain=DOMAIN):
|
|||
self, discovery_info: zeroconf.ZeroconfServiceInfo
|
||||
) -> FlowResult:
|
||||
"""Handle discovery via zeroconf."""
|
||||
ip_address = discovery_info["host"]
|
||||
ip_address = discovery_info[zeroconf.ATTR_HOST]
|
||||
|
||||
self._async_abort_entries_match({CONF_IP_ADDRESS: ip_address})
|
||||
# Handle IP change
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue