Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Always show HA toggle in backup data settings #23387

Merged
merged 1 commit into from
Dec 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 11 additions & 16 deletions src/panels/config/backup/components/config/ha-backup-config-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,24 +157,19 @@ class HaBackupConfigData extends LitElement {
<ha-md-list>
<ha-md-list-item>
<ha-svg-icon slot="start" .path=${mdiCog}></ha-svg-icon>
<span slot="headline">
${this.forceHomeAssistant
? "Home Assistant settings are always included"
: "Home Assistant settings"}
</span>
<span slot="headline"> Home Assistant settings </span>
<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>
${this.forceHomeAssistant
? nothing
: html`
<ha-switch
id="homeassistant"
slot="end"
@change=${this._switchChanged}
.checked=${data.homeassistant}
></ha-switch>
`}
<ha-switch
id="homeassistant"
slot="end"
@change=${this._switchChanged}
.checked=${data.homeassistant}
.disabled=${this.forceHomeAssistant}
></ha-switch>
</ha-md-list-item>

<ha-md-list-item>
Expand Down
Loading