Skip to content

Commit

Permalink
Fix homeassistant_included flag for local backups (#133640)
Browse files Browse the repository at this point in the history
  • Loading branch information
emontnemery authored Dec 20, 2024
1 parent e62a563 commit 5834ecb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions homeassistant/components/backup/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ def read_backup(backup_path: Path) -> AgentBackup:
if (
homeassistant := cast(JsonObjectType, data.get("homeassistant"))
) and "version" in homeassistant:
homeassistant_included = True
homeassistant_version = cast(str, homeassistant["version"])
database_included = not cast(
bool, homeassistant.get("exclude_database", False)
Expand Down

0 comments on commit 5834ecb

Please sign in to comment.