mirror of
https://github.com/home-assistant/core.git
synced 2025-06-26 16:07:08 +00:00
Avoid duplicate data fetch during Synologs DSM setup (#116839)
don't do first refresh of central coordinator, is already done by api.setup before
This commit is contained in:
parent
3d7d8fa28b
commit
b4ec1f5877
@ -90,12 +90,9 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
|
|||||||
)
|
)
|
||||||
|
|
||||||
coordinator_central = SynologyDSMCentralUpdateCoordinator(hass, entry, api)
|
coordinator_central = SynologyDSMCentralUpdateCoordinator(hass, entry, api)
|
||||||
await coordinator_central.async_config_entry_first_refresh()
|
|
||||||
|
|
||||||
available_apis = api.dsm.apis
|
available_apis = api.dsm.apis
|
||||||
|
|
||||||
# The central coordinator needs to be refreshed first since
|
|
||||||
# the next two rely on data from it
|
|
||||||
coordinator_cameras: SynologyDSMCameraUpdateCoordinator | None = None
|
coordinator_cameras: SynologyDSMCameraUpdateCoordinator | None = None
|
||||||
if api.surveillance_station is not None:
|
if api.surveillance_station is not None:
|
||||||
coordinator_cameras = SynologyDSMCameraUpdateCoordinator(hass, entry, api)
|
coordinator_cameras = SynologyDSMCameraUpdateCoordinator(hass, entry, api)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user