mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 04:37:06 +00:00
Use dataclass properties in devolo_home_control discovery (#60600)
Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
parent
0bb44c042c
commit
a32a748cec
@ -49,7 +49,7 @@ class DevoloHomeControlFlowHandler(config_entries.ConfigFlow, domain=DOMAIN):
|
|||||||
) -> FlowResult:
|
) -> FlowResult:
|
||||||
"""Handle zeroconf discovery."""
|
"""Handle zeroconf discovery."""
|
||||||
# Check if it is a gateway
|
# Check if it is a gateway
|
||||||
if discovery_info[zeroconf.ATTR_PROPERTIES].get("MT") in SUPPORTED_MODEL_TYPES:
|
if discovery_info.properties.get("MT") in SUPPORTED_MODEL_TYPES:
|
||||||
await self._async_handle_discovery_without_unique_id()
|
await self._async_handle_discovery_without_unique_id()
|
||||||
return await self.async_step_zeroconf_confirm()
|
return await self.async_step_zeroconf_confirm()
|
||||||
return self.async_abort(reason="Not a devolo Home Control gateway.")
|
return self.async_abort(reason="Not a devolo Home Control gateway.")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user