Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HACS becomes unresponsive after multiple sidepanel name changes #4436

Open
7 tasks done
esauvisky opened this issue Feb 12, 2025 · 2 comments
Open
7 tasks done

HACS becomes unresponsive after multiple sidepanel name changes #4436

esauvisky opened this issue Feb 12, 2025 · 2 comments
Labels
issue:frontend For issues with the frontend/UI

Comments

@esauvisky
Copy link

Web browser

Google Chrome

Web browser version

Version 132.0.6834.159 (Official Build) (64-bit)

System Health details

## System Information

version | core-2025.2.2
-- | --
installation_type | Home Assistant Container
dev | false
hassio | false
docker | true
user | root
virtualenv | false
python_version | 3.13.1
os_name | Linux
os_version | 6.13.2-arch1-1
arch | x86_64
timezone | America/Sao_Paulo
config_dir | /config

<details><summary>Home Assistant Community Store</summary>

GitHub API | ok
-- | --
GitHub Content | ok
GitHub Web | ok
HACS Data | ok
GitHub API Calls Remaining | 4971
Installed Version | 2.0.5
Stage | running
Available Repositories | 1589
Downloaded Repositories | 6

</details>

<details><summary>Home Assistant Cloud</summary>

logged_in | false
-- | --
can_reach_cert_server | ok
can_reach_cloud_auth | ok
can_reach_cloud | ok

</details>

<details><summary>Dashboards</summary>

dashboards | 2
-- | --
resources | 1
views | 1
mode | storage

</details>

<details><summary>Network Configuration</summary>

adapters | lo (disabled), eno1 (enabled, default, auto), wlan0 (disabled), br-1a00a23092d1 (disabled), docker0 (disabled), veth0c57631 (disabled), veth81b2442 (disabled), veth3e9eabe (disabled)
-- | --
ipv4_addresses | lo (127.0.0.1/8), eno1 (192.168.1.2/24), wlan0 (192.168.1.224/24), br-1a00a23092d1 (172.18.0.1/16), docker0 (172.17.0.1/16), veth0c57631 (), veth81b2442 (), veth3e9eabe ()
ipv6_addresses | lo (::1/128), eno1 (fe80::661c:67ff:fe70:73e/64), wlan0 (fe80::8219:34ff:fefd:6074/64), br-1a00a23092d1 (fe80::42:6ff:fe7c:e86a/64), docker0 (), veth0c57631 (fe80::7050:12ff:fefd:c93a/64), veth81b2442 (fe80::fca4:77ff:fe64:6a1c/64), veth3e9eabe (fe80::7821:a7ff:fe50:d493/64)
announce_addresses | 192.168.1.2, fe80::661c:67ff:fe70:73e

</details>

<details><summary>Recorder</summary>

oldest_recorder_run | January 2, 2025 at 1:57 PM
-- | --
current_recorder_run | February 12, 2025 at 12:06 AM
estimated_db_size | 1860.87 MiB
database_engine | sqlite
database_version | 3.47.1

</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 becomes None, causing the subsequent errors, including the inability to configure HACS and the blank interface.

Reproduction steps

  1. Open Home Assistant.
  2. Navigate to Settings > Devices & Services > HACS Integration.
  3. Click on Configure and change the sidepanel name (e.g., from "HACS" to "Custom HACS").
  4. Click Submit to save the change.
  5. Repeat Step 3 by changing the name again (e.g., from "Custom HACS" to "My HACS").
  6. Click Submit again.
  7. Attempt to change the name a third time via Configure – it now displays "HACS is not setup."
  8. Observe that the HACS interface is now blank and unresponsive.
  9. Restarting Home Assistant restores functionality, but the issue repeats if the same steps are followed.

Screenshots

Image

Image

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.

@esauvisky esauvisky added the issue:frontend For issues with the frontend/UI label Feb 12, 2025
@hacs-bot
Copy link

hacs-bot bot commented Feb 12, 2025

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 esauvisky changed the title Renaming sidepanel entry twice breaks config entry HACS becomes unresponsive after multiple sidepanel name changes Feb 12, 2025
@ludeeus
Copy link
Member

ludeeus commented Feb 12, 2025

It seems like a bug in HA to me...
Should start working again if you restart Home Assistant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
issue:frontend For issues with the frontend/UI
Projects
None yet
Development

No branches or pull requests

2 participants