『瀚思彼岸』» 智能家居技术论坛

 找回密码
 立即注册
查看: 2266|回复: 3

[已解决] 配置HACS后提示设置失败无法使用怎么解决

[复制链接]

2

主题

6

帖子

34

积分

新手上路

Rank: 1

积分
34
金钱
28
HASS币
0
发表于 2022-2-5 07:40:58 | 显示全部楼层 |阅读模式
本帖最后由 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'


回复

使用道具 举报

2

主题

6

帖子

34

积分

新手上路

Rank: 1

积分
34
金钱
28
HASS币
0
 楼主| 发表于 2022-2-5 09:18:21 | 显示全部楼层
自己把问题解决了。
答案是这个hacs的集成包存在问题,重新从git上面下载最新版本(https://github.com/hacs/integration/releases)再重新安装操作即可
回复

使用道具 举报

0

主题

4

帖子

32

积分

新手上路

Rank: 1

积分
32
金钱
28
HASS币
0
发表于 2022-3-29 14:58:16 | 显示全部楼层
isabellapei 发表于 2022-2-5 09:18
自己把问题解决了。
答案是这个hacs的集成包存在问题,重新从git上面下载最新版本(https://github.com/hac ...

谢谢你 按照你说的解决了
回复

使用道具 举报

0

主题

4

帖子

32

积分

新手上路

Rank: 1

积分
32
金钱
28
HASS币
0
发表于 2022-3-29 16:38:35 | 显示全部楼层
isabellapei 发表于 2022-2-5 09:18
自己把问题解决了。
答案是这个hacs的集成包存在问题,重新从git上面下载最新版本(https://github.com/hac ...

安装OK了,但是 界面完全不一样功能还是受限制
1648543036(1).png

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-5-12 15:01 , Processed in 0.303166 second(s), 28 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表