I noticed that my mushroom cards aren’t appearing correctly in my HA desktops - instead I have the words ‘Configuration error’ where each mushroom card should be. Investigating this, I found that HACS isn’t working - it says ‘failed to set up’. I’ve tried disabling and then enabling it, and of course reloading HA, but it does not make any difference. I guess the file is corrupted somewhere. (See error log at the bottom of this message)
Other threads on the subject seem to suggest the best option will be to remove and reinstall HACS, but that means that all of the add-ons installed by HACS would need to be re-installed too? Some of them (eg BATMON) took me weeks to set up, so I am wondering if this is true, and if there is any alternative. I think I would lose a lot of work. I have checked through backups, but unfortunately, all the retained automatic backups are recent, and seem to include the error, and the last manual backup I did was before installing BATMON.
Logger: homeassistant.config_entries
Source: config_entries.py:751
First occurred: 19:43:26 (3 occurrences)
Last logged: 19:51:38Error setting up entry for hacs
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/config_entries.py”, line 751, in __async_setup_with_context
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/config/custom_components/hacs/init.py”, line 246, in async_setup_entry
setup_result = await async_initialize_integration(hass=hass, config_entry=config_entry)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/config/custom_components/hacs/init.py”, line 214, in async_initialize_integration
await async_try_startup()
File “/config/custom_components/hacs/init.py”, line 201, in async_try_startup
startup_result = await async_startup()
^^^^^^^^^^^^^^^^^^^^^
File “/config/custom_components/hacs/init.py”, line 170, in async_startup
async_register_frontend(hass, hacs)
~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^
File “/config/custom_components/hacs/frontend.py”, line 54, in async_register_frontend
hass.http.register_static_path(f"{URL_BASE}/frontend", locate_dir(), cache_headers=False)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: ‘HomeAssistantHTTP’ object has no attribute ‘register_static_path’. Did you mean: ‘async_register_static_paths’?