HACS: Failed to Setup error

I noticed this error in integration a few core updates back. I am currently on 2021.5.2.

errors:
2021-05-12_7-25-51

log:
2021-05-12_7-36-19

HACS ver:
2021-05-12_7-27-32

HACS tab:

HACS seems to be fine and I don’t experience any packages not working.

I have exacty the same error. Started to appear from 2021.5.1.
But everything seems to be working, including updates of integrations installed by HACS.

I had the same error. Curious - Do you have your HACS configured through yaml or through the Integrations UI? Mine was in yaml, so I commented it out and then restarted HA. Then re-installed using the UI. The error went away, and my HACS integrations all showed up and seem to be fine with no adjustments needed.

1 Like

Mine is through the integrations.

Edited: No, I take it back. HACS is in my config file.

Try commenting it out and recreating through the UI.

Try commenting it out and recreating through the UI.

Ok. After a reboot, HA seems to be operating fine. I didn’t even have to install HACS from the integrations tab. It apparently installed itself. Don’t know how that happened.

2 Likes

I also had config left in configuration.yaml.
Removed it, and no error now

Thanks.

Those who solved the error message by removing the “hacs” entry from your configuration.yaml, what does that mean for the github token that hacs needs? Is the token stored by hacs somehow even after you comment out the hacs config in the yaml? Or does it no longer have github access?

hacs:
  token: d73jxxxxxxxxxxxu23xxxhse

Looks like they use OAuth to access Github instead of the token. OAuth=UI, token=YAML.

" HACS uses a device OAuth flow for authentication against the GitHub API.

If you do not want that, you can use a Personal Access Token if you configure HACS with YAML.