Skip to content

Commit

Permalink
Increese download timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
ludeeus committed Jan 7, 2025
1 parent 8a05217 commit 4b0fec4
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 4b0fec4

Please sign in to comment.