mirror of
https://github.com/home-assistant/frontend.git
synced 2025-08-02 14:07:55 +00:00
Object.keys to for
This commit is contained in:
parent
545f81fa24
commit
26730cb2e2
@ -330,7 +330,7 @@ class HuiMapCard extends LitElement implements LovelaceCard {
|
|||||||
|
|
||||||
const paths: HaMapPaths[] = [];
|
const paths: HaMapPaths[] = [];
|
||||||
|
|
||||||
Object.keys(history).forEach((entityId) => {
|
for (const entityId of Object.keys(history)) {
|
||||||
const entityStates = history[entityId];
|
const entityStates = history[entityId];
|
||||||
if (entityStates?.length > 1) {
|
if (entityStates?.length > 1) {
|
||||||
// filter location data from states and remove all invalid locations
|
// filter location data from states and remove all invalid locations
|
||||||
@ -364,7 +364,7 @@ class HuiMapCard extends LitElement implements LovelaceCard {
|
|||||||
gradualOpacity: 0.8,
|
gradualOpacity: 0.8,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
}
|
||||||
return paths;
|
return paths;
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user