mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +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) => {
|
const addEntityId = (entities: Set<string>, entity) => {
|
||||||
|
if (!entity) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (typeof entity === "string") {
|
if (typeof entity === "string") {
|
||||||
entities.add(entity);
|
entities.add(entity);
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user