Fix homeassistant_included flag for local backups (#133640)

pull/133643/head
Erik Montnemery 2024-12-20 12:36:54 +01:00 committed by GitHub
parent e62a563ec1
commit 5834ecb13e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -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)