Use dataclass properties in shelly discovery (#60593)
Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
parent
fb94ed4e6b
commit
ba1cc00c24
1 changed files with 1 additions and 1 deletions
|
@ -189,7 +189,7 @@ class ConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
|
|||
self, discovery_info: zeroconf.ZeroconfServiceInfo
|
||||
) -> FlowResult:
|
||||
"""Handle zeroconf discovery."""
|
||||
host = discovery_info[zeroconf.ATTR_HOST]
|
||||
host = discovery_info.host
|
||||
try:
|
||||
self.info = await self._async_get_info(host)
|
||||
except HTTP_CONNECT_ERRORS:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue