Where I’ve manually added a state class to a sensor, that sensor’s data is stored in the long-term stats table. If I now remove that state class (for whatever reason), does HA remember the state class (in the sense that its now part of the sensor’s config in the .storage
files) and hence will keep recording long-term stats?
What would be my best recourse? Remove it from the storage files, and optionally delete the data from the DB manually?