core: core.entity_registry: Failed to serialize to JSON
The problem
as title.
has the benefit of a very quick config check (1 sc or so) 😉
all entities seem to be there, and no other failing consequence noted yet.
What version of Home Assistant Core has the issue?
2022.7.0.dev20220623
What was the last working version of Home Assistant Core?
2022.7.0.dev20220622
What type of installation are you running?
Home Assistant OS
Integration causing the issue
util.json zwave_js
Link to integration documentation on our website
https://www.home-assistant.io/integrations/zwave_js/
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
2022-06-23 07:28:20 ERROR (SyncWorker_4) [homeassistant.util.json] Failed to serialize to JSON: /config/.storage/core.entity_registry. Bad data at
2022-06-23 07:28:20 ERROR (MainThread) [homeassistant.helpers.storage] Error writing config for core.entity_registry: Failed to serialize to JSON: /config/.storage/core.entity_registry. Bad data at
and
Logger: homeassistant.helpers.storage
Source: helpers/storage.py:280
First occurred: 07:28:20 (1 occurrences)
Last logged: 07:28:20
Error writing config for core.entity_registry: Failed to serialize to JSON: /config/.storage/core.entity_registry. Bad data at
Additional information
clicking the error in the log only reveals
Logger: homeassistant.util.json
Source: util/json.py:67
First occurred: 07:28:20 (1 occurrences)
Last logged: 07:28:20
Failed to serialize to JSON: /config/.storage/core.entity_registry. Bad data at
so the ‘at’ remains a mystery
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 16 (16 by maintainers)
Commits related to this issue
- Handle non-str keys when storing json data Fixes #73882 — committed to bdraco/home-assistant by bdraco 2 years ago
Should be fixed in tonight’s dev build
but not in
save_jsonI fixed the error reporting in https://github.com/home-assistant/core/pull/73908 so you should get a better error in the next build
just to be able to debug this: it wont show if its an invalid template wont it? because I just walked through all of my dashboard/views, and nothing seems to be missing .
Ill recheck on those in the entity_registry entities, but yeah, some context would be cool
btw, all checks are super fast! took almost 50% off off the startup time, and even the refresh frontend is done in the blink of an eye. pretty amazing job you did!