Skip to content

Commit

Permalink
Update onboarding backup view
Browse files Browse the repository at this point in the history
  • Loading branch information
emontnemery committed Feb 4, 2025
1 parent b0571c8 commit 5e0004b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion homeassistant/components/onboarding/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ async def get(self, manager: BackupManager, request: web.Request) -> web.Respons
backups, _ = await manager.async_get_backups()
return self.json(
{
"backups": [backup.as_frontend_json() for backup in backups.values()],
"backups": list(backups.values()),
"state": manager.state,
"last_non_idle_event": manager.last_non_idle_event,
}
Expand Down
8 changes: 8 additions & 0 deletions tests/components/onboarding/snapshots/test_views.ambr
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
'backup_id': 'abc123',
'database_included': True,
'date': '1970-01-01T00:00:00.000Z',
'extra_metadata': dict({
'instance_id': 'abc123',
'with_automatic_settings': True,
}),
'failed_agent_ids': list([
]),
'folders': list([
Expand All @@ -42,6 +46,10 @@
'backup_id': 'def456',
'database_included': False,
'date': '1980-01-01T00:00:00.000Z',
'extra_metadata': dict({
'instance_id': 'unknown_uuid',
'with_automatic_settings': True,
}),
'failed_agent_ids': list([
]),
'folders': list([
Expand Down

0 comments on commit 5e0004b

Please sign in to comment.