I already have HACS installed and up and running with addons, cards, etc. If I need to replace the Github personal access token with a new one, how do I do this without losing all my HACS addons?
Can I just delete the existing personal access token on the github page for HACS… and, HomeAssistant will be smart enough to prompt me to enter a new token? Or, would I just end up destroying my HACS setup?
You do not want to just delete your current access token. Neither HA nor HACS will prompt you to enter a new one and it could cause boot issues with HA. I believe what you want to do is go to the Configuration/Integrations ui remove the HACS integration (in the three dot menu) and then add it back at which point you will be asked for your new token. I don’t know whether your current setup will be retained, I suspect not, so note the current addons, cards, etc. before hand and re-add them afterwards.
Sorry to revive this old thread, but it’s right on point. I am being prompted to regenerate my Github token to take advantage of the new formats. Will removing and reinstalling HACS wipe out my custom integrations? If so, I’m going to hold off on doing this as long as possible.
I was in the same boat and decided to try it out. I was able to remove the HACS integration from HA (Configuration > Integrations > 3 dots on HACS card > Delete), and then I promptly added it right back - I did not restart in between those steps - and it configured using OAuth access now instead of PAT.
I did a snapshot/backup to be safe, but I did delete the HACS integration via Configuration -> Integrations, then restarted HA to fully remove it. Once removed, I added it back using the menus in Configuration -> Integrations and everything appears to be functional afterwards. I’m assuming it is using the new access token format as a part of the new setup. Cheers and good luck!
Thanks for sharing your experience. I assume your post was prompted by the Github announcement email, as others above have mentioned. Given the breadth of HACS users affected, I too hope the devs find a way to update/replace the token without the risk of removal and reinstallation or confirm that it’s generally safe to do without breaking (assuming your case was an anomaly). Until then, I’m going to hold off on any action as it seems the old format will continue to work for now.
If you used the Oauth then you don’t need to do anything. If you used YAML for HACS just make a new token and edit the yaml with the new creds. You should not need to remove or reinstall anything
When you say that everything appears to be functional afterwards, do you mean all your HACS addons you had installed previously (frontend cards, etc./integrations) were restored after you uninstalled/reinstalled the HACS integration? I have several HACS addons currently.
I’ve generated the new token but as of now I’ve not done any action an HA/Hacs configuration. Hope it will clear out soon how to proceed to safely change the installed token without any risk of loosing what was working fine before the token update. I’ll keep an eye on this issue meanwhile.
It’s been a while since I installed HACS, so I don’t recall the Oath screens specifically, but I also don’t see any hacs section in my YAML files so I guess it must have been Oath.
When you say I don’t need to do anything, does that mean HACS will automatically request a new format token or that I should already be using a new token since I used Oauth? If the latter, I wonder then why Github sent the warning about the old format token.
Thanks for the directions. This worked well for me.
I deleted HACS from my integrations and re-added it without restarting HA. All HACS components are back and working.