当前位置:   article > 正文

遇到了Could not authenticate with GitHub, try again later 无法添加hacs

could not authenticate with github, try again later.

无法添加hacs

同样遇到了Could not authenticate with GitHub, try again later这个问题就是容器无法访问github导致的
NAS访问不了,但是电脑可以通过魔法访问的话
解决方案如下:

  1. 去github手动申请一个token, 这一步骤可以参考hacs官方教程

https://beta- -hacs.netlify.app/docs/configuration/pat
去掉上边网址多余的空格,网站的Markdown抽风,两条横杠发不出来

  1. 在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

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  1. 重启服务,就能在侧边栏看到hacs服务了

链接:

https://community.home-assistant.io/t/github-new-token/309907
https://beta–hacs.netlify.app/docs/configuration/pat

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/木道寻08/article/detail/740735
推荐阅读
  

闽ICP备14008679号