Home AssistantHome AssistantContributors
In code
statisticsstate_class
Also
statistics, LTS

Home Assistant keeps statistics for every sensor with a state class. Unlike the history, they are not cleaned up after ten days. Five-minute summaries are kept too, but only as long as the history.