Skip to content

Commit

Permalink
Make sure backup directory exists
Browse files Browse the repository at this point in the history
  • Loading branch information
emontnemery committed Dec 4, 2024
1 parent 68c4729 commit b4ff158
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions homeassistant/components/backup/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,7 @@ async def async_receive_backup(
) -> None:
"""Receive and store a backup file from upload."""
target_temp_file = Path(self.temp_backup_dir, contents.filename or "backup.tar")
await self.hass.async_add_executor_job(make_backup_dir, self.temp_backup_dir)

await receive_file(self.hass, contents, target_temp_file)

Expand Down

0 comments on commit b4ff158

Please sign in to comment.