There’s a typo in the example spiro gave, it state_class should start with a lowercase s and it should most likely be total_increasing in your examples.
If you click delete (which would be a shame, as you might lose history) the message stays because you still have no state class. It is saying it isn’t recording long term data now for you because of it. It likely hasn’t been since you created the templates.
If a template sensor was previously declared with some state_class, then LTS is generated and stored in DB.
When this template becomes without a state_class, a corresponding statistics issue appeared in Dev tools - Statistics. This issue proposes to delete the previously generated LTS from DB.
Starting from 2924.10, the Repairs contain these statistical issues as well. But these repairs may keep shown even after “fixing the issue” - see my post above.
So, if LTS is needed for these entities - a proper state-class should be added.
If no LTS is needed - then see above…