${this._error
? html`
${this._error.message || this._error.code}
`
: ""}
${this._hostInfo
? html`
${this._hostInfo.disk_life_time !== "" &&
this._hostInfo.disk_life_time >= 10
? // prettier-ignore
html`
`
: ""}
${this._hostInfo
? html`
${this.hass.localize(
"ui.panel.config.storage.datadisk.title"
)}
`
: nothing}
`
: ""}
${this._mountsInfo === null
? html`
${isHAOS
? html`${this.hass.localize(
"ui.panel.config.storage.network_mounts.not_supported.os",
{ version: "10.2" }
)}
${this.hass.localize(
"ui.panel.config.storage.network_mounts.not_supported.navigate_to_updates"
)}
`
: this.hass.localize(
"ui.panel.config.storage.network_mounts.not_supported.supervised"
)}
`
: validMounts?.length
? html`
${validMounts.map(
(mount) => html`
${mount.name}
${mount.server}${mount.port
? `:${mount.port}`
: nothing}${mount.type === SupervisorMountType.NFS
? mount.path
: `:${mount.share}`}
${mount.state !== SupervisorMountState.ACTIVE
? html``
: html``}
`
)}
`
: html`
${this.hass.localize(
"ui.panel.config.storage.network_mounts.no_mounts"
)}
`}
${this._mountsInfo !== null
? html`
${this.hass.localize(
"ui.panel.config.storage.network_mounts.add_title"
)}
`
: nothing}