mirror of
https://github.com/home-assistant/core.git
synced 2025-05-17 20:39:16 +00:00
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
@ -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…
x
Reference in New Issue
Block a user