|
本帖最后由 isabellapei 于 2022-2-5 09:18 编辑
配置HACS后提示设置失败,主要是 Error setting up entry for hacs不知道怎么解决,网上查了个遍没有任何解决办法
出错语句:
[color=var(--warning-color)]2022-02-05 07:28:48 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
[color=var(--error-color)]2022-02-05 07:29:29 ERROR (MainThread) [custom_components.hacs] Timeout of 20 reached while waiting for https://github.com/login/device/code
[color=var(--error-color)]2022-02-05 07:32:43 ERROR (MainThread) [custom_components.hacs] Timeout of 20 reached while waiting for https://github.com/login/device/code
[color=var(--error-color)]2022-02-05 07:33:17 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry for hacs
单独拿出Error setting up entry for hacs的出错提示:此错误来自自定义集成。
Logger: homeassistant.config_entries
Source: custom_components/hacs/tasks/setup_frontend.py:11
Integration: HACS (documentation, issues)
First occurred: 07:33:17 (1 occurrences)
Last logged: 07:33:17
Error setting up entry for hacs
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 313, in async_setup
result = await component.async_setup_entry(hass, self) # type: ignore
File "/config/custom_components/hacs/__init__.py", line 167, in async_setup_entry
return await async_initialize_integration(hass=hass, config_entry=config_entry)
File "/config/custom_components/hacs/__init__.py", line 103, in async_initialize_integration
await hacs.tasks.async_load()
File "/config/custom_components/hacs/tasks/manager.py", line 42, in async_load
await asyncio.gather(*[_load_module(task) for task in task_modules])
File "/config/custom_components/hacs/tasks/manager.py", line 38, in _load_module
task_module = import_module(f"{__package__}.{module}")
File "/usr/local/lib/python3.9/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 850, in exec_module
File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
File "/config/custom_components/hacs/tasks/setup_frontend.py", line 11, in <module>
from ..hacs_frontend import locate_dir
ModuleNotFoundError: No module named 'custom_components.hacs.hacs_frontend'
|
|