mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 17:57:11 +00:00
Fix homeassistant_included flag for local backups (#133640)
This commit is contained in:
parent
e62a563ec1
commit
5834ecb13e
@ -50,6 +50,7 @@ def read_backup(backup_path: Path) -> AgentBackup:
|
|||||||
if (
|
if (
|
||||||
homeassistant := cast(JsonObjectType, data.get("homeassistant"))
|
homeassistant := cast(JsonObjectType, data.get("homeassistant"))
|
||||||
) and "version" in homeassistant:
|
) and "version" in homeassistant:
|
||||||
|
homeassistant_included = True
|
||||||
homeassistant_version = cast(str, homeassistant["version"])
|
homeassistant_version = cast(str, homeassistant["version"])
|
||||||
database_included = not cast(
|
database_included = not cast(
|
||||||
bool, homeassistant.get("exclude_database", False)
|
bool, homeassistant.get("exclude_database", False)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user