Skip to content

Commit

Permalink
Increase cloud backup download timeout (#134961)
Browse files Browse the repository at this point in the history
Increese download timeout
  • Loading branch information
ludeeus authored Jan 7, 2025
1 parent 4019045 commit 5d2a8e8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion homeassistant/components/cloud/backup.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,11 @@ async def async_download_backup(
raise BackupAgentError("Failed to get download details") from err

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()
except ClientError as err:
raise BackupAgentError("Failed to download backup") from err
Expand Down

0 comments on commit 5d2a8e8

Please sign in to comment.