Only show own devices when there are devices... (#25920)

only show own devices when there are devices...
This commit is contained in:
Bram Kragten 2025-06-25 23:31:43 +02:00 committed by GitHub
parent df2523a6a2
commit eb9359e9e1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 47 additions and 41 deletions

View File

@ -405,8 +405,12 @@ class HaConfigEntryRow extends LitElement {
</ha-md-list-item>
${this._expanded
? subEntries.length
? html`${ownDevices.length
? html`<ha-md-list class="devices">
<ha-md-list-item @click=${this._toggleOwnDevices} type="button">
<ha-md-list-item
@click=${this._toggleOwnDevices}
type="button"
>
<ha-icon-button
class="expand-button"
.path=${this._devicesExpanded
@ -431,7 +435,8 @@ class HaConfigEntryRow extends LitElement {
></ha-config-entry-device-row>`
)
: nothing}
</ha-md-list>
</ha-md-list>`
: nothing}
${subEntries.map(
(subEntry) => html`
<ha-config-sub-entry-row

View File

@ -541,8 +541,9 @@ class HaConfigIntegrationPage extends SubscribeMixin(LitElement) {
<ha-button
slot="action"
@click=${this._handleDisableDebugLogging}
>${this.hass.localize("ui.common.disable")}</ha-button
>
${this.hass.localize("ui.common.disable")}
</ha-button>
</ha-alert>
</div>`
: nothing}