Fix backup time supporting-text (#23931)

This commit is contained in:
Wendelin 2025-01-29 09:08:26 +01:00 committed by GitHub
parent 543c7df3e0
commit 5feffd08ff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 14 additions and 20 deletions

View File

@ -251,25 +251,20 @@ class HaBackupConfigSchedule extends LitElement {
>
<span slot="supporting-text">
${this.hass.localize(
"ui.panel.config.backup.schedule.schedule_time_description"
"ui.panel.config.backup.schedule.schedule_time_description",
{
time_range_start: formatTime(
DEFAULT_OPTIMIZED_BACKUP_START_TIME,
this.hass.locale,
this.hass.config
),
time_range_end: formatTime(
DEFAULT_OPTIMIZED_BACKUP_END_TIME,
this.hass.locale,
this.hass.config
),
}
)}
${data.time_option === BackupScheduleTime.DEFAULT
? this.hass.localize(
"ui.panel.config.backup.schedule.schedule_time_optimal_description",
{
time_range_start: formatTime(
DEFAULT_OPTIMIZED_BACKUP_START_TIME,
this.hass.locale,
this.hass.config
),
time_range_end: formatTime(
DEFAULT_OPTIMIZED_BACKUP_END_TIME,
this.hass.locale,
this.hass.config
),
}
)
: nothing}
</span>
<ha-md-select

View File

@ -2442,8 +2442,7 @@
"custom_time_label": "Backup at",
"custom_time_description": "The optimal time is after Home Assistant finished cleaning up the database. This is done at {time}.",
"schedule_description": "How often you want to create a backup.",
"schedule_time_description": "When the backup creation starts.",
"schedule_time_optimal_description": "By default Home Assistant picks the optimal time between {time_range_start} and {time_range_end}.",
"schedule_time_description": "When the backup creation starts. By default Home Assistant picks the optimal time between {time_range_start} and {time_range_end}.",
"tip": "You can create your own custom backup automation with the {backup_create} action",
"schedule_options": {
"never": "Never",