Skip to content

Commit

Permalink
Fix a crash in compute-unused-entities (#22549)
Browse files Browse the repository at this point in the history
  • Loading branch information
karwosts authored Oct 26, 2024
1 parent 2daaa1c commit fd01302
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/panels/lovelace/common/compute-unused-entities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ const addFromAction = (entities: Set<string>, actionConfig: ActionConfig) => {
};

const addEntityId = (entities: Set<string>, entity) => {
if (!entity) {
return;
}
if (typeof entity === "string") {
entities.add(entity);
return;
Expand Down

0 comments on commit fd01302

Please sign in to comment.