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

无法添加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. 重启服务,就能在侧边栏看到hacs服务了

链接:

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

  • 11
    点赞
  • 11
    收藏
    觉得还不错? 一键收藏
  • 4
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值