fordpass-ha icon indicating copy to clipboard operation
fordpass-ha copied to clipboard

Updates from HACS are erasing the fordpass_token.txt file and the integration fails

Open cpw opened this issue 9 months ago • 4 comments

Whenever I update this integration via HACS, the integration goes offline after restarting. It seems that the fordpass_token.txt file that is dropped into custom_components/fordpass/ directory is erased by the HACS update. This is probably a bug, because I suspect that's not what you want to happen. I have to restore the file from backup and restart HA to get the integration working again.

I'll also note that there seems to be no way in the config flow to reauthenticate and adding a new integration means I have to rebuild all my automations and dashboards, which is a lot of effort.

I think you should look at a different way of storing the secure token, that doesn't involve dropping it in your custom_components directory since that's probably NOT where it should go.

cpw avatar Sep 12 '23 14:09 cpw