Skip to content

Commit

Permalink
Merge pull request #464 from ExperienceLovelace/bugfix/no_ha_query_fo…
Browse files Browse the repository at this point in the history
…r_star_query_char

Do not add * as target
  • Loading branch information
exetico authored Sep 15, 2024
2 parents 5ecc916 + ef13166 commit b77d056
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/floorplan/floorplan-element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1179,6 +1179,10 @@ export class FloorplanElement extends LitElement {
this.evaluate(rule.element, entityId, undefined) as string
);
else if (rule.element !== null) elementIds = elementIds.concat(entityId);

// Do not add target entity "*"
if (entityId && entityId === "*") continue;

this.addTargetEntity(entityId, elementIds, targetEntities);
}

Expand Down

0 comments on commit b77d056

Please sign in to comment.