mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 09:46:36 +00:00
Fix a crash in compute-unused-entities (#22549)
This commit is contained in:
parent
2daaa1cb9c
commit
fd01302d9a
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user