Show Home Assistant when creating partial backup (#11758)

This commit is contained in:
Joakim Sørensen 2022-02-21 18:33:02 +01:00 committed by GitHub
parent a14d75deec
commit eaf97ee7f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -175,13 +175,13 @@ export class SupervisorBackupContent extends LitElement {
: ""} : ""}
${this.backupType === "partial" ${this.backupType === "partial"
? html`<div class="partial-picker"> ? html`<div class="partial-picker">
${this.backup && this.backup.homeassistant
? html`
<ha-formfield <ha-formfield
.label=${html`<supervisor-formfield-label .label=${html`<supervisor-formfield-label
label="Home Assistant" label="Home Assistant"
.iconPath=${mdiHomeAssistant} .iconPath=${mdiHomeAssistant}
.version=${this.backup.homeassistant} .version=${this.backup
? this.backup.homeassistant
: this.hass.config.version}
> >
</supervisor-formfield-label>`} </supervisor-formfield-label>`}
> >
@ -191,8 +191,7 @@ export class SupervisorBackupContent extends LitElement {
> >
</ha-checkbox> </ha-checkbox>
</ha-formfield> </ha-formfield>
`
: ""}
${foldersSection?.templates.length ${foldersSection?.templates.length
? html` ? html`
<ha-formfield <ha-formfield