Core_restore_state Filling up with renamed entitys

I noticed that the file core_restore_state is filling up with old renamed entitys. How can i clean this file up?

Problem seems to occure when you rename a entity, the old entity state is still saved and is not removed, after renaming the entity in question the old state is no longer valid.

1 Like

The home assistant registry seems to operate on the same principle as the windows registry, i.e. “save all the cruft”.

If you use Configurator, remove .storage from the config’s excluded items. Then restart it, and then open .storage/core.restore_state. Replace it with

{
    "data": [],
    "key": "core.restore_state",
    "version": 1
}

And save