Increase timeout for fetching camera data on Synology DSM (#59237)

This commit is contained in:
Michael
2021-11-09 05:42:20 +01:00
committed by Paulus Schoutsen
parent dcada92cef
commit a4253ff54e

View File

@@ -233,7 +233,7 @@ async def async_setup_entry( # noqa: C901
surveillance_station = api.surveillance_station surveillance_station = api.surveillance_station
try: try:
async with async_timeout.timeout(10): async with async_timeout.timeout(30):
await hass.async_add_executor_job(surveillance_station.update) await hass.async_add_executor_job(surveillance_station.update)
except SynologyDSMAPIErrorException as err: except SynologyDSMAPIErrorException as err:
raise UpdateFailed(f"Error communicating with API: {err}") from err raise UpdateFailed(f"Error communicating with API: {err}") from err