mirror of
https://github.com/home-assistant/frontend.git
synced 2025-08-02 05:57:54 +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[] = [];
|
||||
|
||||
Object.keys(history).forEach((entityId) => {
|
||||
for (const entityId of Object.keys(history)) {
|
||||
const entityStates = history[entityId];
|
||||
if (entityStates?.length > 1) {
|
||||
// filter location data from states and remove all invalid locations
|
||||
@ -364,7 +364,7 @@ class HuiMapCard extends LitElement implements LovelaceCard {
|
||||
gradualOpacity: 0.8,
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
return paths;
|
||||
}
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user