From 7724fa02d79db5cf7d884f7ee8133007a7dcd803 Mon Sep 17 00:00:00 2001 From: Paul Bottein Date: Fri, 24 Feb 2023 09:27:53 +0100 Subject: [PATCH] Fix all hardware button (#15579) --- .../config/hardware/ha-config-hardware.ts | 23 +++++++++++-------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/src/panels/config/hardware/ha-config-hardware.ts b/src/panels/config/hardware/ha-config-hardware.ts index bea75f5176..118323cd54 100644 --- a/src/panels/config/hardware/ha-config-hardware.ts +++ b/src/panels/config/hardware/ha-config-hardware.ts @@ -327,16 +327,21 @@ class HaConfigHardware extends SubscribeMixin(LitElement) { : ""} - ${boardConfigEntries.length + ${boardConfigEntries.length || + isComponentLoaded(this.hass, "hassio") ? html`
- - ${this.hass.localize( - "ui.panel.config.hardware.configure" - )} - + ${boardConfigEntries.length + ? html` + + ${this.hass.localize( + "ui.panel.config.hardware.configure" + )} + + ` + : null} ${isComponentLoaded(this.hass, "hassio") ? html`