I had a helper sensor made from Utility name sensor.lights_badevarelse_energy
and it had a value of 4262. But I made a mistake by using Utility where I should have used Integral sensor. So I deleted the old entity and tried to create the new one, but the new one keeps having the same value as the old one (because I used the same name).
I can see in core.restore_state the entity and its value a kept, but every time I try to delete it, it just comes back.
How do I delete all the old data from an entity, so when I create a new one with the same name all its data i empty?