You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).
This is a bug and not a feature request.
This issue is not a duplicate issue of currently open or issues pending release.
Describe the issue
When editing the sidepanel name of the integration entry for HACS twice, via the Configuration menu, the configuration link stops working and shows "HACS is not setup".
Additionally, the HACS interface becomes blank and unresponsive. Restarting Home Assistant (HASS) restores normal functionality, but the issue reoccurs if the steps are repeated.
An initial investigation shows that the issue occurs when the integration is unloading entries. Once that fails, the global hacs object becomes None, causing the subsequent errors, including the inability to configure HACS and the blank interface.
Reproduction steps
Open Home Assistant.
Navigate to Settings > Devices & Services > HACS Integration.
Click on Configure and change the sidepanel name (e.g., from "HACS" to "Custom HACS").
Click Submit to save the change.
Repeat Step 3 by changing the name again (e.g., from "Custom HACS" to "My HACS").
Click Submit again.
Attempt to change the name a third time via Configure – it now displays "HACS is not setup."
Observe that the HACS interface is now blank and unresponsive.
Restarting Home Assistantrestores functionality, but the issue repeats if the same steps are followed.
Screenshots
Javascript logs from your browser console
hacs.ts:116 Uncaught (in promise) {code: 'unknown_error', message: 'Unknown error'}
value @ hacs.ts:116
await in value
value @ hacs.ts:76
value @ hacs.ts:28
performUpdate @ reactive-element.ts:1327
scheduleUpdate @ reactive-element.ts:1261
_$Ej @ reactive-element.ts:1233
await in _$Ej
requestUpdate @ reactive-element.ts:1208
_$Eu @ reactive-element.ts:946
_ @ reactive-element.ts:931
S @ lit-element.ts:115
(anonymous) @ provide-hass-lit-mixin.ts:11
r @ hacs.ts:13
r @ main.ts:19
finisher @ custom-element.ts:41
runClassFinishers @ decorate.js:172
c @ decorate.js:10
(anonymous) @ main.ts:19
Debug logs
2025-02-12 03:00:23.358 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2025-02-12 03:00:23.358 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration localtuya which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2025-02-12 03:00:23.359 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration tuya_local which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2025-02-12 03:00:23.359 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration spook which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2025-02-12 03:00:23.360 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration google_home which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2025-02-12 03:00:23.360 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration spook_inverse which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2025-02-12 03:00:24.046 WARNING (Recorder) [homeassistant.components.recorder.util] The system could not validate that the sqlite3 database at //config/home-assistant_v2.db was shutdown cleanly
2025-02-12 03:00:24.105 WARNING (Recorder) [homeassistant.components.recorder.util] Ended unfinished session (id=135 from 2025-02-12 02:52:38.979553)
2025-02-12 03:00:25.362 INFO (MainThread) [custom_components.hacs]
-------------------------------------------------------------------
HACS (Home Assistant Community Store)
Version: 2.0.5
This is a custom integration
If you have any issues with this you need to open an issue here:
https://github.com/hacs/integration/issues
-------------------------------------------------------------------
2025-02-12 03:00:25.372 INFO (MainThread) [custom_components.hacs] <HacsData restore> Restore started
2025-02-12 03:00:25.409 INFO (MainThread) [custom_components.hacs] <HacsData restore> Restore done
2025-02-12 03:00:25.410 INFO (MainThread) [custom_components.hacs] Enable category: integration
2025-02-12 03:00:25.410 INFO (MainThread) [custom_components.hacs] Enable category: plugin
2025-02-12 03:00:25.410 INFO (MainThread) [custom_components.hacs] Enable category: template
2025-02-12 03:00:25.411 INFO (MainThread) [custom_components.hacs] Enable category: theme
2025-02-12 03:00:25.411 INFO (MainThread) [custom_components.hacs] Enable category: appdaemon
2025-02-12 03:00:25.414 INFO (MainThread) [custom_components.hacs] Setting up plugin endpoint
2025-02-12 03:00:25.414 INFO (MainThread) [custom_components.hacs] <HacsFrontend> storage mode, cache for /hacsfiles/: True
2025-02-12 03:00:25.845 INFO (MainThread) [custom_components.hacs] Stage changed: setup
2025-02-12 03:00:25.845 INFO (MainThread) [custom_components.hacs] Stage changed: waiting
2025-02-12 03:00:25.845 INFO (MainThread) [custom_components.hacs] Setup complete, waiting for Home Assistant before startup tasks starts
2025-02-12 03:00:27.635 ERROR (MainThread) [homeassistant.components.lg_thinq.coordinator] Error fetching lg_thinq_d5f528bc3b3316370e243ede5b53c1ff73f85b1741c8e50352d49be4b5b56800 data: ThinQAPIException: NOT_CONNECTED_DEVICE (1222) - Not connected device
2025-02-12 03:00:28.866 WARNING (MainThread) [custom_components.localtuya.coordinator] [025...ab9 - SHSM501] Connection failed: [Errno 113] Host is unreachable ('192.168.1.217', '6668')
2025-02-12 03:00:32.852 INFO (MainThread) [custom_components.hacs] Stage changed: startup
2025-02-12 03:00:32.853 DEBUG (MainThread) [custom_components.hacs] There are 6 scheduled recurring tasks
2025-02-12 03:00:32.853 INFO (MainThread) [custom_components.hacs] Loading removed repositories
2025-02-12 03:00:33.118 INFO (MainThread) [custom_components.hacs] Loading known repositories
2025-02-12 03:00:33.118 DEBUG (MainThread) [custom_components.hacs] Fetching updated content for integration
2025-02-12 03:00:33.118 DEBUG (MainThread) [custom_components.hacs] Fetching updated content for theme
2025-02-12 03:00:33.119 DEBUG (MainThread) [custom_components.hacs] Fetching updated content for plugin
2025-02-12 03:00:33.119 DEBUG (MainThread) [custom_components.hacs] Fetching updated content for appdaemon
2025-02-12 03:00:33.119 DEBUG (MainThread) [custom_components.hacs] Fetching updated content for template
2025-02-12 03:00:33.244 INFO (MainThread) [custom_components.hacs] Stage changed: running
2025-02-12 03:00:33.267 DEBUG (MainThread) [custom_components.hacs] <QueueManager> The queue is empty
2025-02-12 03:00:33.267 DEBUG (MainThread) [custom_components.hacs] <HACSStore async_save_to_store> Did not store data for 'hacs.critical'. Content did not change
2025-02-12 03:00:33.267 DEBUG (MainThread) [custom_components.hacs] Nothing in the queue
2025-02-12 03:00:33.573 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'spook' accessed lovelace_data['dashboards'] instead of lovelace_data.dashboards at custom_components/spook/ectoplasms/lovelace/repairs/unknown_entity_references.py, line 45: self._dashboards = self.hass.data["lovelace"]["dashboards"]. This will stop working in Home Assistant 2026.2, please create a bug report at https://github.com/frenck/spook/issues
2025-02-12 03:02:21.996 DEBUG (MainThread) [custom_components.hacs] <Plugin thomasloven/lovelace-auto-entities> Getting repository information
2025-02-12 03:02:22.690 DEBUG (MainThread) [custom_components.hacs] <Plugin thomasloven/lovelace-auto-entities> Running checks against v1.13.0
2025-02-12 03:02:23.284 DEBUG (MainThread) [custom_components.hacs] <Plugin thomasloven/lovelace-auto-entities> Getting documentation for version=v1.13.0,filename=README.md
2025-02-12 03:02:23.284 DEBUG (MainThread) [custom_components.hacs] Trying to download https://raw.githubusercontent.com/thomasloven/lovelace-auto-entities/v1.13.0/README.md
2025-02-12 03:03:14.796 DEBUG (MainThread) [custom_components.hacs] <HacsData async_write> Saving data
2025-02-12 03:03:14.881 INFO (MainThread) [custom_components.hacs] Removing sidepanel
2025-02-12 03:03:14.881 INFO (MainThread) [custom_components.hacs]
-------------------------------------------------------------------
HACS (Home Assistant Community Store)
Version: 2.0.5
This is a custom integration
If you have any issues with this you need to open an issue here:
https://github.com/hacs/integration/issues
-------------------------------------------------------------------
2025-02-12 03:03:14.891 INFO (MainThread) [custom_components.hacs] <HacsData restore> Restore started
2025-02-12 03:03:14.929 INFO (MainThread) [custom_components.hacs] <HacsData restore> Restore done
2025-02-12 03:03:14.929 INFO (MainThread) [custom_components.hacs] Enable category: integration
2025-02-12 03:03:14.930 INFO (MainThread) [custom_components.hacs] Enable category: plugin
2025-02-12 03:03:14.930 INFO (MainThread) [custom_components.hacs] Enable category: template
2025-02-12 03:03:14.930 INFO (MainThread) [custom_components.hacs] Enable category: theme
2025-02-12 03:03:14.930 INFO (MainThread) [custom_components.hacs] Enable category: appdaemon
2025-02-12 03:03:14.932 INFO (MainThread) [custom_components.hacs] Setting up plugin endpoint
2025-02-12 03:03:14.932 INFO (MainThread) [custom_components.hacs] <HacsFrontend> storage mode, cache for /hacsfiles/: True
2025-02-12 03:03:14.935 INFO (MainThread) [custom_components.hacs] Stage changed: setup
2025-02-12 03:03:14.936 INFO (MainThread) [custom_components.hacs] Stage changed: waiting
2025-02-12 03:03:14.936 INFO (MainThread) [custom_components.hacs] Setup complete, waiting for Home Assistant before startup tasks starts
2025-02-12 03:03:14.936 INFO (MainThread) [custom_components.hacs] Stage changed: startup
2025-02-12 03:03:14.939 DEBUG (MainThread) [custom_components.hacs] There are 6 scheduled recurring tasks
2025-02-12 03:03:14.939 INFO (MainThread) [custom_components.hacs] Loading removed repositories
2025-02-12 03:03:15.007 INFO (MainThread) [custom_components.hacs] Loading known repositories
2025-02-12 03:03:15.007 DEBUG (MainThread) [custom_components.hacs] Fetching updated content for integration
2025-02-12 03:03:15.008 DEBUG (MainThread) [custom_components.hacs] Fetching updated content for theme
2025-02-12 03:03:15.008 DEBUG (MainThread) [custom_components.hacs] Fetching updated content for plugin
2025-02-12 03:03:15.008 DEBUG (MainThread) [custom_components.hacs] Fetching updated content for appdaemon
2025-02-12 03:03:15.008 DEBUG (MainThread) [custom_components.hacs] Fetching updated content for template
2025-02-12 03:03:15.179 INFO (MainThread) [custom_components.hacs] Stage changed: running
2025-02-12 03:03:15.201 DEBUG (MainThread) [custom_components.hacs] <QueueManager> The queue is empty
2025-02-12 03:03:15.202 DEBUG (MainThread) [custom_components.hacs] <HACSStore async_save_to_store> Did not store data for 'hacs.critical'. Content did not change
2025-02-12 03:03:15.202 DEBUG (MainThread) [custom_components.hacs] Nothing in the queue
2025-02-12 03:03:19.670 DEBUG (MainThread) [custom_components.hacs] <HacsData async_write> Saving data
2025-02-12 03:03:19.670 DEBUG (MainThread) [custom_components.hacs] <HacsData async_write> Saving data
2025-02-12 03:03:19.826 INFO (MainThread) [custom_components.hacs] Removing sidepanel
2025-02-12 03:03:19.826 INFO (MainThread) [custom_components.hacs]
-------------------------------------------------------------------
HACS (Home Assistant Community Store)
Version: 2.0.5
This is a custom integration
If you have any issues with this you need to open an issue here:
https://github.com/hacs/integration/issues
-------------------------------------------------------------------
2025-02-12 03:03:19.833 INFO (MainThread) [custom_components.hacs] <HacsData restore> Restore started
2025-02-12 03:03:19.839 ERROR (MainThread) [homeassistant.config_entries] Error unloading entry for switch
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 849, in async_unload
result = await component.async_unload_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/switch/__init__.py", line 84, in async_unload_entry
return await hass.data[DATA_COMPONENT].async_unload_entry(entry)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 200, in async_unload_entry
raise ValueError("Config entry was never loaded!")
ValueError: Config entry was never loaded!
2025-02-12 03:03:19.840 ERROR (MainThread) [homeassistant.config_entries] Error unloading entry for update
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 849, in async_unload
result = await component.async_unload_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/update/__init__.py", line 124, in async_unload_entry
return await hass.data[DATA_COMPONENT].async_unload_entry(entry)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 200, in async_unload_entry
raise ValueError("Config entry was never loaded!")
ValueError: Config entry was never loaded!
2025-02-12 03:03:19.849 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [137529192605024] Error handling message: Unknown error (unknown_error) Emi from 192.168.1.1 (Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36)
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 28, in _handle_async_response
await func(hass, connection, msg)
File "/config/custom_components/hacs/websocket/repositories.py", line 70, in hacs_repositories_list
for repo in hacs.repositories.list_all
^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'repositories'
2025-02-12 03:03:19.850 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [137529192605024] Error handling message: Unknown error (unknown_error) Emi from 192.168.1.1 (Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36)
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 28, in _handle_async_response
await func(hass, connection, msg)
File "/config/custom_components/hacs/websocket/repositories.py", line 70, in hacs_repositories_list
for repo in hacs.repositories.list_all
^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'repositories'
2025-02-12 03:03:19.875 INFO (MainThread) [custom_components.hacs] <HacsData restore> Restore done
2025-02-12 03:03:19.875 INFO (MainThread) [custom_components.hacs] Enable category: integration
2025-02-12 03:03:19.875 INFO (MainThread) [custom_components.hacs] Enable category: plugin
2025-02-12 03:03:19.875 INFO (MainThread) [custom_components.hacs] Enable category: template
2025-02-12 03:03:19.876 INFO (MainThread) [custom_components.hacs] Enable category: theme
2025-02-12 03:03:19.876 INFO (MainThread) [custom_components.hacs] Enable category: appdaemon
2025-02-12 03:03:19.878 INFO (MainThread) [custom_components.hacs] Setting up plugin endpoint
2025-02-12 03:03:19.878 INFO (MainThread) [custom_components.hacs] <HacsFrontend> storage mode, cache for /hacsfiles/: True
2025-02-12 03:03:19.878 ERROR (MainThread) [homeassistant.components.switch] Error while setting up hacs platform for switch: 'hacs'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 366, in _async_setup_platform
await asyncio.shield(awaitable)
File "/config/custom_components/hacs/switch.py", line 25, in async_setup_entry
hacs: HacsBase = hass.data[DOMAIN]
~~~~~~~~~^^^^^^^^
KeyError: 'hacs'
2025-02-12 03:03:19.879 ERROR (MainThread) [homeassistant.components.update] Error while setting up hacs platform for update: 'hacs'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 366, in _async_setup_platform
await asyncio.shield(awaitable)
File "/config/custom_components/hacs/update.py", line 24, in async_setup_entry
hacs: HacsBase = hass.data[DOMAIN]
~~~~~~~~~^^^^^^^^
KeyError: 'hacs'
2025-02-12 03:03:19.880 INFO (MainThread) [custom_components.hacs] Stage changed: setup
2025-02-12 03:03:19.880 INFO (MainThread) [custom_components.hacs] Stage changed: waiting
2025-02-12 03:03:19.880 INFO (MainThread) [custom_components.hacs] Setup complete, waiting for Home Assistant before startup tasks starts
2025-02-12 03:03:19.880 INFO (MainThread) [custom_components.hacs] Stage changed: startup
2025-02-12 03:03:19.880 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved (None)
Traceback (most recent call last):
File "/config/custom_components/hacs/__init__.py", line 229, in async_reload_entry
await async_setup_entry(hass, config_entry)
File "/config/custom_components/hacs/__init__.py", line 186, in async_setup_entry
hacs: HacsBase = hass.data[DOMAIN]
~~~~~~~~~^^^^^^^^
KeyError: 'hacs'
2025-02-12 03:03:19.882 DEBUG (MainThread) [custom_components.hacs] There are 6 scheduled recurring tasks
2025-02-12 03:03:19.882 INFO (MainThread) [custom_components.hacs] Loading removed repositories
2025-02-12 03:03:19.906 INFO (MainThread) [custom_components.hacs] Loading known repositories
2025-02-12 03:03:19.906 DEBUG (MainThread) [custom_components.hacs] Fetching updated content for integration
2025-02-12 03:03:19.906 DEBUG (MainThread) [custom_components.hacs] Fetching updated content for theme
2025-02-12 03:03:19.907 DEBUG (MainThread) [custom_components.hacs] Fetching updated content for plugin
2025-02-12 03:03:19.907 DEBUG (MainThread) [custom_components.hacs] Fetching updated content for appdaemon
2025-02-12 03:03:19.907 DEBUG (MainThread) [custom_components.hacs] Fetching updated content for template
2025-02-12 03:03:19.936 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [137529192605024] Error handling message: Unknown error (unknown_error) Emi from 192.168.1.1 (Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36)
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 28, in _handle_async_response
await func(hass, connection, msg)
File "/config/custom_components/hacs/websocket/repositories.py", line 70, in hacs_repositories_list
for repo in hacs.repositories.list_all
^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'repositories'
2025-02-12 03:03:19.937 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [137529192605024] Error handling message: Unknown error (unknown_error) Emi from 192.168.1.1 (Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36)
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 28, in _handle_async_response
await func(hass, connection, msg)
File "/config/custom_components/hacs/websocket/repositories.py", line 70, in hacs_repositories_list
for repo in hacs.repositories.list_all
^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'repositories'
2025-02-12 03:03:19.937 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [137529192605024] Error handling message: Unknown error (unknown_error) Emi from 192.168.1.1 (Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36)
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 28, in _handle_async_response
await func(hass, connection, msg)
File "/config/custom_components/hacs/websocket/repositories.py", line 70, in hacs_repositories_list
for repo in hacs.repositories.list_all
^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'repositories'
2025-02-12 03:03:19.938 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [137529192605024] Error handling message: Unknown error (unknown_error) Emi from 192.168.1.1 (Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36)
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 28, in _handle_async_response
await func(hass, connection, msg)
File "/config/custom_components/hacs/websocket/repositories.py", line 70, in hacs_repositories_list
for repo in hacs.repositories.list_all
^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'repositories'
2025-02-12 03:03:19.954 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [137529192605024] Error handling message: Unknown error (unknown_error) Emi from 192.168.1.1 (Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36)
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 28, in _handle_async_response
await func(hass, connection, msg)
File "/config/custom_components/hacs/websocket/repositories.py", line 70, in hacs_repositories_list
for repo in hacs.repositories.list_all
^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'repositories'
2025-02-12 03:03:19.954 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [137529192605024] Error handling message: Unknown error (unknown_error) Emi from 192.168.1.1 (Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36)
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 28, in _handle_async_response
await func(hass, connection, msg)
File "/config/custom_components/hacs/websocket/repositories.py", line 70, in hacs_repositories_list
for repo in hacs.repositories.list_all
^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'repositories'
2025-02-12 03:03:19.955 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [137529192605024] Error handling message: Unknown error (unknown_error) Emi from 192.168.1.1 (Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36)
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 28, in _handle_async_response
await func(hass, connection, msg)
File "/config/custom_components/hacs/websocket/repositories.py", line 70, in hacs_repositories_list
for repo in hacs.repositories.list_all
^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'repositories'
2025-02-12 03:03:19.956 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [137529192605024] Error handling message: Unknown error (unknown_error) Emi from 192.168.1.1 (Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36)
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 28, in _handle_async_response
await func(hass, connection, msg)
File "/config/custom_components/hacs/websocket/repositories.py", line 70, in hacs_repositories_list
for repo in hacs.repositories.list_all
^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'repositories'
2025-02-12 03:03:20.010 INFO (MainThread) [custom_components.hacs] Stage changed: running
2025-02-12 03:03:20.011 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [137529192605024] Error handling message: Unknown error (unknown_error) Emi from 192.168.1.1 (Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36)
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 28, in _handle_async_response
await func(hass, connection, msg)
File "/config/custom_components/hacs/websocket/repositories.py", line 70, in hacs_repositories_list
for repo in hacs.repositories.list_all
^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'repositories'
2025-02-12 03:03:20.011 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [137529192605024] Error handling message: Unknown error (unknown_error) Emi from 192.168.1.1 (Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36)
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 28, in _handle_async_response
await func(hass, connection, msg)
File "/config/custom_components/hacs/websocket/repositories.py", line 70, in hacs_repositories_list
for repo in hacs.repositories.list_all
^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'repositories'
2025-02-12 03:03:20.029 DEBUG (MainThread) [custom_components.hacs] <QueueManager> The queue is empty
2025-02-12 03:03:20.030 DEBUG (MainThread) [custom_components.hacs] <HACSStore async_save_to_store> Did not store data for 'hacs.critical'. Content did not change
2025-02-12 03:03:20.030 DEBUG (MainThread) [custom_components.hacs] Nothing in the queue
2025-02-12 03:03:37.539 ERROR (MainThread) [homeassistant.config_entries] Error unloading entry for hacs
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 849, in async_unload
result = await component.async_unload_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/hacs/__init__.py", line 192, in async_unload_entry
hacs: HacsBase = hass.data[DOMAIN]
~~~~~~~~~^^^^^^^^
KeyError: 'hacs'
Diagnostics dump
Trying to download a diagnostics dump of the integration entry after the issue occurs fails.
The text was updated successfully, but these errors were encountered:
Make sure you have read the issue guidelines and that you filled out the entire template.
If you have an issue identical to this, do not add comments like "same here", "i have this too", instead add a 👍 reaction to the issue description. Thanks! 👍
esauvisky
changed the title
Renaming sidepanel entry twice breaks config entry
HACS becomes unresponsive after multiple sidepanel name changes
Feb 12, 2025
Web browser
Google Chrome
Web browser version
Version 132.0.6834.159 (Official Build) (64-bit)
System Health details
Checklist
Describe the issue
When editing the sidepanel name of the integration entry for HACS twice, via the Configuration menu, the configuration link stops working and shows "HACS is not setup".
Additionally, the HACS interface becomes blank and unresponsive. Restarting Home Assistant (HASS) restores normal functionality, but the issue reoccurs if the steps are repeated.
An initial investigation shows that the issue occurs when the integration is unloading entries. Once that fails, the global
hacs
object becomesNone
, causing the subsequent errors, including the inability to configure HACS and the blank interface.Reproduction steps
"HACS"
to"Custom HACS"
)."Custom HACS"
to"My HACS"
)."HACS is not setup."
Screenshots
Javascript logs from your browser console
Debug logs
Diagnostics dump
Trying to download a diagnostics dump of the integration entry after the issue occurs fails.
The text was updated successfully, but these errors were encountered: