In the last week, the SQL integration failed to set up every time after the HA reset.
If I reload it manually then it works fine as usual.
Can someone please help me figure out what is the problem?
Here is the log:
Logger: homeassistant.config_entries
Source: config_entries.py:637
First occurred: 10:20:41 (1 occurrences)
Last logged: 10:20:41
Error setting up entry MariaDB Database Size for sql
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 637, in __async_setup_with_context
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/sql/__init__.py", line 110, in async_setup_entry
redact_credentials(get_instance(hass).db_url),
~~~~~~~~~~~~^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/recorder.py", line 76, in get_instance
return hass.data[DATA_INSTANCE]
~~~~~~~~~^^^^^^^^^^^^^^^
KeyError: 'recorder_instance'
Here my config: