mirror of
https://github.com/home-assistant/core.git
synced 2025-04-28 19:27:51 +00:00
Increase cloud backup download timeout (#134961)
Increese download timeout
This commit is contained in:
parent
44808c02f9
commit
2c02eefa11
@ -138,7 +138,11 @@ class CloudBackupAgent(BackupAgent):
|
|||||||
raise BackupAgentError("Failed to get download details") from err
|
raise BackupAgentError("Failed to get download details") from err
|
||||||
|
|
||||||
try:
|
try:
|
||||||
resp = await self._cloud.websession.get(details["url"])
|
resp = await self._cloud.websession.get(
|
||||||
|
details["url"],
|
||||||
|
timeout=ClientTimeout(connect=10.0, total=43200.0), # 43200s == 12h
|
||||||
|
)
|
||||||
|
|
||||||
resp.raise_for_status()
|
resp.raise_for_status()
|
||||||
except ClientError as err:
|
except ClientError as err:
|
||||||
raise BackupAgentError("Failed to download backup") from err
|
raise BackupAgentError("Failed to download backup") from err
|
||||||
|
Loading…
x
Reference in New Issue
Block a user