mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 20:57:21 +00:00
Fix Overkiz startup order to prevent unnamed device showing up (#76695)
Gateways should be added first, before platform setup
This commit is contained in:
parent
b8f83f6c70
commit
7ec54edc69
@ -111,8 +111,6 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
|
|||||||
) or OVERKIZ_DEVICE_TO_PLATFORM.get(device.ui_class):
|
) or OVERKIZ_DEVICE_TO_PLATFORM.get(device.ui_class):
|
||||||
platforms[platform].append(device)
|
platforms[platform].append(device)
|
||||||
|
|
||||||
await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS)
|
|
||||||
|
|
||||||
device_registry = dr.async_get(hass)
|
device_registry = dr.async_get(hass)
|
||||||
|
|
||||||
for gateway in setup.gateways:
|
for gateway in setup.gateways:
|
||||||
@ -128,6 +126,8 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
|
|||||||
configuration_url=server.configuration_url,
|
configuration_url=server.configuration_url,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS)
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user