1
0
mirror of https://github.com/home-assistant/frontend.git synced 2025-12-19 18:28:42 +00:00

Fix all hardware button (#15579)

This commit is contained in:
Paul Bottein
2023-02-24 09:27:53 +01:00
committed by GitHub
parent 0a49bf2d4c
commit 7724fa02d7

View File

@@ -327,16 +327,21 @@ class HaConfigHardware extends SubscribeMixin(LitElement) {
: ""}
</mwc-list>
</div>
${boardConfigEntries.length
${boardConfigEntries.length ||
isComponentLoaded(this.hass, "hassio")
? html`<div class="card-actions">
<mwc-button
.entry=${boardConfigEntries[0]}
@click=${this._openOptionsFlow}
>
${this.hass.localize(
"ui.panel.config.hardware.configure"
)}
</mwc-button>
${boardConfigEntries.length
? html`
<mwc-button
.entry=${boardConfigEntries[0]}
@click=${this._openOptionsFlow}
>
${this.hass.localize(
"ui.panel.config.hardware.configure"
)}
</mwc-button>
`
: null}
${isComponentLoaded(this.hass, "hassio")
? html`
<mwc-button @click=${this._openHardware}>