mirror of
https://github.com/home-assistant/core.git
synced 2025-07-14 16:57:10 +00:00
Use dataclass properties in rainmachine discovery (#60578)
Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
parent
c4e5242b0c
commit
b40dc6c271
@ -70,7 +70,7 @@ class RainMachineFlowHandler(config_entries.ConfigFlow, domain=DOMAIN):
|
|||||||
self, discovery_info: zeroconf.ZeroconfServiceInfo
|
self, discovery_info: zeroconf.ZeroconfServiceInfo
|
||||||
) -> FlowResult:
|
) -> FlowResult:
|
||||||
"""Handle discovery via zeroconf."""
|
"""Handle discovery via zeroconf."""
|
||||||
ip_address = discovery_info[zeroconf.ATTR_HOST]
|
ip_address = discovery_info.host
|
||||||
|
|
||||||
self._async_abort_entries_match({CONF_IP_ADDRESS: ip_address})
|
self._async_abort_entries_match({CONF_IP_ADDRESS: ip_address})
|
||||||
# Handle IP change
|
# Handle IP change
|
||||||
|
Loading…
x
Reference in New Issue
Block a user