Skip to content

Commit

Permalink
Fix label filtering in target picker
Browse files Browse the repository at this point in the history
  • Loading branch information
piitaya committed Mar 26, 2024
1 parent e63f377 commit 498cf93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/ha-label-picker.ts
Expand Up @@ -167,7 +167,7 @@ export class HaLabelPicker extends SubscribeMixin(LitElement) {
) {
deviceEntityLookup = getDeviceEntityDisplayLookup(entities);
inputDevices = devices;
inputEntities = entities.filter((entity) => entity.area_id);
inputEntities = entities.filter((entity) => entity.labels.length > 0);

if (includeDomains) {
inputDevices = inputDevices!.filter((device) => {
Expand Down

0 comments on commit 498cf93

Please sign in to comment.