Long term statistics need `last_reset` - please restore it

Per Sensor Entity | Home Assistant Developer Docs

The last_reset date should no longer be supplied.

My confusion comes from sensors with small values, how can we know a reset has occurred?

ie Widget counter counts to 100 and then the counter is replaced.
The next sampling from the replaced counter is 115.
As currently written, my understanding is that the long term statistics will see that as an increase of just 15 - whereas, it has actually increased by 115.

Because we are no longer tracking the last_reset date - HA has no idea that the counter has been replaced.

1 Like