mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-17 06:16:33 +00:00
Fix ha-filter-states
clear filter behaviour (#20599)
Fix ha-filter-states clear filter behaviour
This commit is contained in:
parent
0725c7b160
commit
5fc950f09f
@ -94,7 +94,7 @@ export class HaFilterDevices extends LitElement {
|
|||||||
? nothing
|
? nothing
|
||||||
: html`<ha-check-list-item
|
: html`<ha-check-list-item
|
||||||
.value=${device.id}
|
.value=${device.id}
|
||||||
.selected=${this.value?.includes(device.id)}
|
.selected=${this.value?.includes(device.id) ?? false}
|
||||||
>
|
>
|
||||||
${computeDeviceName(device, this.hass)}
|
${computeDeviceName(device, this.hass)}
|
||||||
</ha-check-list-item>`;
|
</ha-check-list-item>`;
|
||||||
|
@ -108,7 +108,7 @@ export class HaFilterEntities extends LitElement {
|
|||||||
? nothing
|
? nothing
|
||||||
: html`<ha-check-list-item
|
: html`<ha-check-list-item
|
||||||
.value=${entity.entity_id}
|
.value=${entity.entity_id}
|
||||||
.selected=${this.value?.includes(entity.entity_id)}
|
.selected=${this.value?.includes(entity.entity_id) ?? false}
|
||||||
graphic="icon"
|
graphic="icon"
|
||||||
>
|
>
|
||||||
<ha-state-icon
|
<ha-state-icon
|
||||||
|
@ -62,8 +62,8 @@ export class HaFilterStates extends LitElement {
|
|||||||
(item) =>
|
(item) =>
|
||||||
html`<ha-check-list-item
|
html`<ha-check-list-item
|
||||||
.value=${item.value}
|
.value=${item.value}
|
||||||
.selected=${this.value?.includes(item.value)}
|
.selected=${this.value?.includes(item.value) ?? false}
|
||||||
.graphic=${hasIcon ? "icon" : undefined}
|
.graphic=${hasIcon ? "icon" : null}
|
||||||
>
|
>
|
||||||
${item.icon
|
${item.icon
|
||||||
? html`<ha-icon
|
? html`<ha-icon
|
||||||
|
Loading…
x
Reference in New Issue
Block a user