无法添加hacs
同样遇到了Could not authenticate with GitHub, try again later这个问题就是容器无法访问github导致的
NAS访问不了,但是电脑可以通过魔法访问的话
解决方案如下:
- 去github手动申请一个token, 这一步骤可以参考hacs官方教程
https://beta- -hacs.netlify.app/docs/configuration/pat
去掉上边网址多余的空格,网站的Markdown抽风,两条横杠发不出来
- 在config/configuration.yaml 中手动添加配置token的字段
# Loads default set of integrations. Do not remove.
default_config:
# Load frontend themes from the themes folder
frontend:
themes: !include_dir_merge_named themes
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
# Enable HACS
hacs:
# token generated on 2021/05/20
token: ghp_xxxxxxxxxxxxxxxx
- 重启服务,就能在侧边栏看到hacs服务了
链接:
https://community.home-assistant.io/t/github-new-token/309907
https://beta–hacs.netlify.app/docs/configuration/pat