Always show backup location retention settings (#25261)

Always show backup location retention settings
This commit is contained in:
Jan-Philipp Benecke 2025-05-01 19:02:55 +02:00 committed by GitHub
parent ebc16d6520
commit dddba58d38
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -118,8 +118,7 @@ class HaConfigBackupDetails extends LitElement {
</p> </p>
</div> </div>
` `
: this.config?.agents[this.agentId] : html`<ha-backup-config-retention
? html`<ha-backup-config-retention
location-specific location-specific
.headline=${this.hass.localize( .headline=${this.hass.localize(
`ui.panel.config.backup.location.retention_for_${isLocalAgent(this.agentId) ? "this_system" : "location"}`, `ui.panel.config.backup.location.retention_for_${isLocalAgent(this.agentId) ? "this_system" : "location"}`,
@ -129,8 +128,7 @@ class HaConfigBackupDetails extends LitElement {
.retention=${this.config?.agents[this.agentId] .retention=${this.config?.agents[this.agentId]
?.retention} ?.retention}
@value-changed=${this._retentionChanged} @value-changed=${this._retentionChanged}
></ha-backup-config-retention>` ></ha-backup-config-retention>`}
: nothing}
</ha-card> </ha-card>
<ha-card> <ha-card>
<div class="card-header"> <div class="card-header">