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 GitHub
parent a989fd2e66
commit a22a966fac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -164,7 +164,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
surveillance_station = api.surveillance_station
try:
async with async_timeout.timeout(10):
async with async_timeout.timeout(30):
await hass.async_add_executor_job(surveillance_station.update)
except SynologyDSMAPIErrorException as err:
raise UpdateFailed(f"Error communicating with API: {err}") from err