Always show HA toggle in backup data settings (#23387)

This commit is contained in:
Bram Kragten 2024-12-23 09:37:50 +01:00 committed by GitHub
parent 7d0a269f1b
commit 31d98ec935
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -157,24 +157,19 @@ class HaBackupConfigData extends LitElement {
<ha-md-list> <ha-md-list>
<ha-md-list-item> <ha-md-list-item>
<ha-svg-icon slot="start" .path=${mdiCog}></ha-svg-icon> <ha-svg-icon slot="start" .path=${mdiCog}></ha-svg-icon>
<span slot="headline"> <span slot="headline"> Home Assistant settings </span>
${this.forceHomeAssistant
? "Home Assistant settings are always included"
: "Home Assistant settings"}
</span>
<span slot="supporting-text"> <span slot="supporting-text">
The bare minimum needed to restore your system. ${this.forceHomeAssistant
? "The bare minimum needed to restore the system. It is always included in automatic backup data."
: "The bare minimum needed to restore your system."}
</span> </span>
${this.forceHomeAssistant <ha-switch
? nothing id="homeassistant"
: html` slot="end"
<ha-switch @change=${this._switchChanged}
id="homeassistant" .checked=${data.homeassistant}
slot="end" .disabled=${this.forceHomeAssistant}
@change=${this._switchChanged} ></ha-switch>
.checked=${data.homeassistant}
></ha-switch>
`}
</ha-md-list-item> </ha-md-list-item>
<ha-md-list-item> <ha-md-list-item>