dahlb / ha_hatch

Home Assistant Integration for Hatch Rest Mini
MIT License
76 stars 16 forks source link

Unable to Reconfigure Credentials #104

Closed nqeldridge closed 3 months ago

nqeldridge commented 3 months ago

It appears there is no way to update your username/password after the initial configuration. I changed the password of my Hatch account and now the device is showing a login error, but I cannot find where to update the password.

dahlb commented 3 months ago

the default response seems to be to delete and re-add the integration, example https://community.home-assistant.io/t/ring-integration-change-username-password/388674

however if you provide the logs by adding

logger:
  default: warning
  logs:
    custom_components.ha_hatch: debug
    hatch_rest_api: debug

I should be able to see the error the api provides and trigger a re-auth flow as outlined at https://developers.home-assistant.io/docs/integration_setup_failures/#handling-expired-credentials

nqeldridge commented 3 months ago

I was able to resolve the issue today by going into the integration, choosing ADD ENTRY, and logging in with my credentials. As long as it was the same username it seems to have replaced the old entry and seamlessly migrated all the devices and entities into the new entry. If I need to re-auth in the future, I will be sure to capture the logs and share them.