diff --git a/src/panels/config/hardware/ha-config-hardware.ts b/src/panels/config/hardware/ha-config-hardware.ts index 50bbf8ce78..5a080dae98 100644 --- a/src/panels/config/hardware/ha-config-hardware.ts +++ b/src/panels/config/hardware/ha-config-hardware.ts @@ -76,13 +76,13 @@ class HaConfigHardware extends LitElement { > ` : ""} - ${this._OSData && this._hostData + ${this._OSData || this._hostData ? html`
-
- ${this._OSData?.board - ? html` + ${this._OSData?.board + ? html` +
${BOARD_NAMES[this._OSData.board] || @@ -94,35 +94,39 @@ class HaConfigHardware extends LitElement { ${this._OSData.board}
- ` - : ""} -
-
- ${this._hostData.features.includes("reboot") - ? html` - - ${this.hass.localize( - "ui.panel.config.hardware.reboot_host" - )} - - ` - : ""} - ${this._hostData.features.includes("shutdown") - ? html` - - ${this.hass.localize( - "ui.panel.config.hardware.shutdown_host" - )} - - ` - : ""} -
+
+ ` + : ""} + ${this._hostData + ? html` +
+ ${this._hostData.features.includes("reboot") + ? html` + + ${this.hass.localize( + "ui.panel.config.hardware.reboot_host" + )} + + ` + : ""} + ${this._hostData.features.includes("shutdown") + ? html` + + ${this.hass.localize( + "ui.panel.config.hardware.shutdown_host" + )} + + ` + : ""} +
+ ` + : ""} `