Closed OhmegaStar closed 3 months ago
Hey there @thomas55555, mind taking a look at this issue as it has been labeled with an integration (husqvarna_automower
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
husqvarna_automower documentation husqvarna_automower source (message by IssueLinks)
Please delete any wrong secrets here: https://www.home-assistant.io/integrations/application_credentials/
Thanks Thomas, Just found the closed bug with the same suggestion, now it works. May I suggest you may add a handler in this case (credentials exist, but oauth fails on setup), as the fact that the credentials exist is not clear. Thanks for the quick answer!
The problem
Had the old custom HACS Husqvarna Automower integration setup. Added the new core integration, in between the two actions i changed my secret at the Husqvarna Developer account. Now the integration setup skips the request for client id and secret, and goes direct to the husqvarna portal to link accounts. this fails;
in the logs i see
2024-06-13 22:45:13.919 ERROR (MainThread) [homeassistant.helpers.config_entry_oauth2_flow] Token request for husqvarna_automower_REDACTED failed (invalid_client): Client or client secret is invalid 2024-06-13 22:45:13.919 ERROR (MainThread) [homeassistant.helpers.config_entry_oauth2_flow] Error resolving OAuth token: 400, message='Bad Request', url=URL('https://api.authentication.husqvarnagroup.dev/v1/oauth2/token')
I'm unable to configure the integration as the automatic setup never completes.
Please advice
What version of Home Assistant Core has the issue?
core-2024.6.2
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Husqvarna Automower
Link to integration documentation on our website
https://www.home-assistant.io/integrations/husqvarna_automower
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Additional information
Seems to be caused by adding new integration / removing hacs integration, and changing husqvarna secret in some combination