Skip to content

Commit

Permalink
Do not add * as target
Browse files Browse the repository at this point in the history
  • Loading branch information
exetico committed Sep 15, 2024
1 parent 5ecc916 commit ef13166
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 ef13166

Please sign in to comment.