Adjust language in backup integration (#134440)

* Adjust language in backup integration

* Update tests
This commit is contained in:
Erik Montnemery 2025-01-02 13:29:46 +01:00 committed by GitHub
parent c5865c6d18
commit 0c3489c1b3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 9 additions and 9 deletions

View File

@ -728,7 +728,7 @@ class BackupManager:
backup_name = (
name
or f"{"Automatic" if with_automatic_settings else "Custom"} {HAVERSION}"
or f"{"Automatic" if with_automatic_settings else "Custom"} backup {HAVERSION}"
)
new_backup, self._backup_task = await self._reader_writer.async_create_backup(
agent_ids=agent_ids,

View File

@ -5,8 +5,8 @@
"description": "The automatic backup could not be created. Please check the logs for more information. Another attempt will be made at the next scheduled time if a backup schedule is configured."
},
"automatic_backup_failed_upload_agents": {
"title": "Automatic backup could not be uploaded to agents",
"description": "The automatic backup could not be uploaded to agents {failed_agents}. Please check the logs for more information. Another attempt will be made at the next scheduled time if a backup schedule is configured."
"title": "Automatic backup could not be uploaded to the configured locations",
"description": "The automatic backup could not be uploaded to the configured locations {failed_agents}. Please check the logs for more information. Another attempt will be made at the next scheduled time if a backup schedule is configured."
}
},
"services": {

View File

@ -2574,7 +2574,7 @@
dict({
'id': 2,
'result': dict({
'backup_job_id': 'fceef4e6',
'backup_job_id': '64331d85',
}),
'success': True,
'type': 'result',
@ -2645,7 +2645,7 @@
dict({
'id': 2,
'result': dict({
'backup_job_id': 'fceef4e6',
'backup_job_id': '64331d85',
}),
'success': True,
'type': 'result',
@ -2716,7 +2716,7 @@
dict({
'id': 2,
'result': dict({
'backup_job_id': 'fceef4e6',
'backup_job_id': '64331d85',
}),
'success': True,
'type': 'result',

View File

@ -121,7 +121,7 @@ async def test_async_create_backup(
assert create_backup.called
assert create_backup.call_args == call(
agent_ids=["backup.local"],
backup_name="Custom 2025.1.0",
backup_name="Custom backup 2025.1.0",
extra_metadata={
"instance_id": hass.data["core.uuid"],
"with_automatic_settings": False,
@ -254,7 +254,7 @@ async def test_async_initiate_backup(
ws_client = await hass_ws_client(hass)
include_database = params.get("include_database", True)
name = params.get("name", "Custom 2025.1.0")
name = params.get("name", "Custom backup 2025.1.0")
password = params.get("password")
path_glob.return_value = []
@ -502,7 +502,7 @@ async def test_async_initiate_backup_with_agent_error(
"folders": [],
"homeassistant_included": True,
"homeassistant_version": "2025.1.0",
"name": "Custom 2025.1.0",
"name": "Custom backup 2025.1.0",
"protected": False,
"size": 123,
"with_automatic_settings": False,