#Backup integration failing to start on 2026.1.2

1 messages · Page 1 of 1 (latest)

trim fossil
#

I think the issue is that I accidently ran 2025.1.2 when trying to start the 2026.1.2 container. I was coming from 2025.12.5.

I'm getting the following error:

Source: setup.py:425
First occurred: 8:55:55 AM (1 occurrence)
Last logged: 8:55:55 AM

Error during setup of component backup: 'state'
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/setup.py", line 425, in _async_setup_component
    result = await task
             ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/backup/__init__.py", line 106, in async_setup
    await backup_manager.async_setup()
  File "/usr/src/homeassistant/homeassistant/components/backup/manager.py", line 381, in async_setup
    stored = await self.store.load()
             ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/backup/store.py", line 106, in load
    return await self._store.async_load()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/storage.py", line 307, in async_load
    result = await self._async_load()
             ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/storage.py", line 327, in _async_load
    return await self._async_load_data()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/storage.py", line 430, in _async_load_data
    stored = await self._async_migrate_func(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        data["version"], data["minor_version"], data["data"]
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/usr/src/homeassistant/homeassistant/components/backup/store.py", line 57, in _async_migrate_func
    if (state := data["config"]["schedule"]["state"]) in ("daily", "never"):
                 ~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
KeyError: 'state'
robust imp
#

sounds like the old version borked your .storage files