#right, but isn't the part of it stored
1 messages · Page 1 of 1 (latest)
I wonder if this line is wrong https://github.com/home-assistant/frontend/blob/dev/src/panels/history/ha-panel-history.ts#L638
I just don't recall ever making an effort to remove the statistics datapoints that overlapped with the history
we just stop displaying them once the history starts filling in
I see, so we should discard all statistics for a time > min(history state time)
could work. I'd probably also flip the order and print statistics first, since they are chronologically earlier.
btw, I was thinking, we should extract this logic so we can do it in cards too
Maybe. I feel the munging process is a bit of a mess, but I consoled myself by saying "at least it's only for the panel and not every history card" 😂.
I considered it but I thought since we already have statistics card that was maybe a bit duplicative.
Yeah that is true ofc