mirror of
https://github.com/home-assistant/core.git
synced 2025-08-06 14:15:12 +02:00
Adjust backup NewBackup class (#130976)
This commit is contained in:
@@ -51,7 +51,7 @@ from .util import read_backup
|
|||||||
class NewBackup:
|
class NewBackup:
|
||||||
"""New backup class."""
|
"""New backup class."""
|
||||||
|
|
||||||
backup_id: str
|
backup_job_id: str
|
||||||
|
|
||||||
|
|
||||||
@dataclass(slots=True)
|
@dataclass(slots=True)
|
||||||
@@ -563,7 +563,7 @@ class CoreBackupReaderWriter(BackupReaderWriter):
|
|||||||
eager_start=False, # To ensure the task is not started before we return
|
eager_start=False, # To ensure the task is not started before we return
|
||||||
)
|
)
|
||||||
|
|
||||||
return (NewBackup(backup_id=backup_id), backup_task)
|
return (NewBackup(backup_job_id=backup_id), backup_task)
|
||||||
|
|
||||||
async def _async_create_backup(
|
async def _async_create_backup(
|
||||||
self,
|
self,
|
||||||
|
@@ -967,7 +967,7 @@
|
|||||||
dict({
|
dict({
|
||||||
'id': 1,
|
'id': 1,
|
||||||
'result': dict({
|
'result': dict({
|
||||||
'backup_id': '27f5c632',
|
'backup_job_id': '27f5c632',
|
||||||
}),
|
}),
|
||||||
'success': True,
|
'success': True,
|
||||||
'type': 'result',
|
'type': 'result',
|
||||||
@@ -988,7 +988,7 @@
|
|||||||
dict({
|
dict({
|
||||||
'id': 1,
|
'id': 1,
|
||||||
'result': dict({
|
'result': dict({
|
||||||
'backup_id': '27f5c632',
|
'backup_job_id': '27f5c632',
|
||||||
}),
|
}),
|
||||||
'success': True,
|
'success': True,
|
||||||
'type': 'result',
|
'type': 'result',
|
||||||
@@ -1009,7 +1009,7 @@
|
|||||||
dict({
|
dict({
|
||||||
'id': 1,
|
'id': 1,
|
||||||
'result': dict({
|
'result': dict({
|
||||||
'backup_id': '27f5c632',
|
'backup_job_id': '27f5c632',
|
||||||
}),
|
}),
|
||||||
'success': True,
|
'success': True,
|
||||||
'type': 'result',
|
'type': 'result',
|
||||||
@@ -1030,7 +1030,7 @@
|
|||||||
dict({
|
dict({
|
||||||
'id': 1,
|
'id': 1,
|
||||||
'result': dict({
|
'result': dict({
|
||||||
'backup_id': 'abc123',
|
'backup_job_id': 'abc123',
|
||||||
}),
|
}),
|
||||||
'success': True,
|
'success': True,
|
||||||
'type': 'result',
|
'type': 'result',
|
||||||
@@ -1040,7 +1040,7 @@
|
|||||||
dict({
|
dict({
|
||||||
'id': 1,
|
'id': 1,
|
||||||
'result': dict({
|
'result': dict({
|
||||||
'backup_id': 'abc123',
|
'backup_job_id': 'abc123',
|
||||||
}),
|
}),
|
||||||
'success': True,
|
'success': True,
|
||||||
'type': 'result',
|
'type': 'result',
|
||||||
|
Reference in New Issue
Block a user