mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 10:16:46 +00:00
Check if entities is an array (#5193)
This commit is contained in:
parent
330eb0957b
commit
0c3c007faf
@ -44,7 +44,7 @@ const addEntities = (entities: Set<string>, obj) => {
|
|||||||
if (obj.entity) {
|
if (obj.entity) {
|
||||||
addEntityId(entities, obj.entity);
|
addEntityId(entities, obj.entity);
|
||||||
}
|
}
|
||||||
if (obj.entities) {
|
if (obj.entities && Array.isArray(obj.entities)) {
|
||||||
obj.entities.forEach((entity) => addEntityId(entities, entity));
|
obj.entities.forEach((entity) => addEntityId(entities, entity));
|
||||||
}
|
}
|
||||||
if (obj.card) {
|
if (obj.card) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user