Fix entity and device selector with multiple: true

This commit is contained in:
Philip Allgaier
2022-04-07 21:39:04 +02:00
parent 0a4e8fd5d0
commit 8f67aa38af
4 changed files with 19 additions and 2 deletions

View File

@@ -66,12 +66,14 @@ export class HaDeviceSelector extends LitElement {
.hass=${this.hass}
.value=${this.value}
.helper=${this.helper}
.deviceFilter=${this._filterDevices}
.includeDeviceClasses=${this.selector.device.entity?.device_class
? [this.selector.device.entity.device_class]
: undefined}
.includeDomains=${this.selector.device.entity?.domain
? [this.selector.device.entity.domain]
: undefined}
.disabled=${this.disabled}
.required=${this.required}
></ha-devices-picker>
`;