#Integration changes not saving on reboot
18 messages · Page 1 of 1 (latest)
No they dont all disappear, just the ones that were added since the previous boot
I do now that I look:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/storage.py", line 515, in _async_callback_delayed_write
await self._async_handle_write_data()
File "/usr/src/homeassistant/homeassistant/helpers/storage.py", line 540, in _async_handle_write_data
await self._async_write_data(self.path, data)
File "/usr/src/homeassistant/homeassistant/helpers/storage.py", line 545, in _async_write_data
await self.hass.async_add_executor_job(self._write_data, self.path, data)
File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 59, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/helpers/storage.py", line 552, in _write_data
data["data"] = data.pop("data_func")()
~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 2426, in _data_to_save
"entries": [entry.as_storage_fragment for entry in self._entries.values()] # type: ignore[misc]
^^^^^^^^^^^^^^^^^^^^^^^^^
File "src/propcache/_helpers_c.pyx", line 80, in propcache._helpers_c.cached_property.__get__
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 534, in as_storage_fragment
return json_fragment(json_bytes_sorted(self.as_dict()))
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^
TypeError: Recursion limit reached```
So something being stored is doing shitty things
Sorry let me rephrase
A custom component is probably trying to store something that is not storable, causing this to happen
How might I debug or resolve that? I've tried going through and disabling as many non-critical integrations and addons as I can but that also rolls back every reboot lol
What do you mean?
If rebooting HA also shows that log message, you should boot HA in safe mode and see if it still happens
Found the cause!
Same thing as here; the Meross HACS integration was causing it
manually deleted its files using the file editor, rebooted, added my new integrations and rebooted again and they've saved