Use dataclass properties in guardian discovery (#60710)
Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
parent
160e6febc3
commit
0782c6c446
1 changed files with 1 additions and 1 deletions
|
@ -100,7 +100,7 @@ class ConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
|
|||
async def async_step_dhcp(self, discovery_info: dhcp.DhcpServiceInfo) -> FlowResult:
|
||||
"""Handle the configuration via dhcp."""
|
||||
self.discovery_info = {
|
||||
CONF_IP_ADDRESS: discovery_info[dhcp.IP_ADDRESS],
|
||||
CONF_IP_ADDRESS: discovery_info.ip,
|
||||
CONF_PORT: DEFAULT_PORT,
|
||||
}
|
||||
return await self._async_handle_discovery()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue