We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 55fb491 commit 4e97968Copy full SHA for 4e97968
src/Cache.ts
@@ -176,6 +176,7 @@ export default class Cache {
176
h = h.filter(
177
(x, i) => i == 0 || i == h.length - 1 || !x.duplicate_datapoint
178
);
179
+ h = h.filter((_, i) => h[i].last_changed !== h[i + 1]?.last_changed);
180
this.histories[entityId] = h;
181
this.attributes[entityId] = fetchedHistory.attributes;
182
this.ranges[entityId].push(fetchedHistory.range);
0 commit comments