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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user