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