Fix check if Surveillance Station is available in Synology DSM (#84140)
start coordinator only when surveillance_station is avialble during api setuppull/84166/head
parent
a3ab6a99e3
commit
5f160be8f6
|
@ -98,7 +98,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
|
|||
# The central coordinator needs to be refreshed first since
|
||||
# the next two rely on data from it
|
||||
coordinator_cameras: SynologyDSMCameraUpdateCoordinator | None = None
|
||||
if SynoSurveillanceStation.CAMERA_API_KEY in available_apis:
|
||||
if api.surveillance_station is not None:
|
||||
coordinator_cameras = SynologyDSMCameraUpdateCoordinator(hass, entry, api)
|
||||
await coordinator_cameras.async_config_entry_first_refresh()
|
||||
|
||||
|
|
Loading…
Reference in New Issue