Filter out entities when expanding device in target (#10570)

This commit is contained in:
Paulus Schoutsen 2021-11-08 01:22:52 -08:00 committed by GitHub
parent c26a59d805
commit fe5a582a74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -502,6 +502,9 @@ export class HaTargetPicker extends SubscribeMixin(LitElement) {
}
private _entityRegMeetsFilter(entity: EntityRegistryEntry): boolean {
if (entity.entity_category) {
return false;
}
if (
this.includeDomains &&
!this.includeDomains.includes(computeDomain(entity.entity_id))