1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 12:59:34 +00:00

Include error reason in backup events (#136697)

* Include error reason in backup events

* Update hassio backup tests

* Sort code

* Remove catching BackupError in async_receive_backup
This commit is contained in:
Erik Montnemery
2025-01-28 14:44:09 +01:00
committed by GitHub
parent 9a4b73a834
commit abb58ec785
7 changed files with 219 additions and 36 deletions

View File

@@ -2816,7 +2816,7 @@ async def test_subscribe_event(
assert await client.receive_json() == snapshot
manager.async_on_backup_event(
CreateBackupEvent(stage=None, state=CreateBackupState.IN_PROGRESS)
CreateBackupEvent(stage=None, state=CreateBackupState.IN_PROGRESS, reason=None)
)
assert await client.receive_json() == snapshot