Did you change the .storage/core.entity_registry file?
This is not a good idea if you did but it might also come from a corruption of the SD Card.
Your file is malformed and HA can’t read it.
There is a invalid character at position 86216 of the file (a 0xb0) (I believe it is a ° but not sure)
Can you check with a file editor?
With VSCode, you can use Ctrl+K CTRL+G after installing this addon
That’s probably not the right place, as device_class is a valid tag.
That will be really annoying to debug.
Maybe an online json validator, can you copy paste your whole file there?
Damn, you should do a comparison then, it means that something from your config is recreating the error.
It will guide you to the integration/entity that is culprit
Upon pening the file with kedit, I receive the following error:
The file you opened has some invalid characters. If you continue editing this file, you could corrupt this document.
You can also choose another character encoding and try again.
The content of the file core.entity_registry and core.device_registry is coming from the configuration.yaml + all the integrations + all customizations + …
If you put an iso-8859-1 encoded character (by saving with a windows application for exemple) in one of the files used by HA to recreate the core files, when the file will be re-created, it will contain that character and the whole process will fail.
I know that because I did a modification in HA that included a french character that HA did not like. I knew which one it was and replaced it with another more “English friendly” one.
EDIT: Doing a diff between the files will pinpoint the character that HA doesn’t like in that file and will most probably help you modify another file such as at the next restart, the core file will not include it again.
I found the culprit! Look at the last line, there is a question mark instead of °.
This is that this is a zwave sensor, how can I debug the problem from now? It never created this issue in older versions of HA.