Use dataclass properties in powerwall discovery (#60732)
Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
parent
3db3f264c2
commit
e001cb3b17
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@ class ConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
|
||||||
|
|
||||||
async def async_step_dhcp(self, discovery_info: dhcp.DhcpServiceInfo) -> FlowResult:
|
async def async_step_dhcp(self, discovery_info: dhcp.DhcpServiceInfo) -> FlowResult:
|
||||||
"""Handle dhcp discovery."""
|
"""Handle dhcp discovery."""
|
||||||
self.ip_address = discovery_info[dhcp.IP_ADDRESS]
|
self.ip_address = discovery_info.ip
|
||||||
self._async_abort_entries_match({CONF_IP_ADDRESS: self.ip_address})
|
self._async_abort_entries_match({CONF_IP_ADDRESS: self.ip_address})
|
||||||
self.context["title_placeholders"] = {CONF_IP_ADDRESS: self.ip_address}
|
self.context["title_placeholders"] = {CONF_IP_ADDRESS: self.ip_address}
|
||||||
return await self.async_step_user()
|
return await self.async_step_user()
|
||||||
|
|
Loading…
Add table
Reference in a new issue