home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
71.14k stars 29.82k forks source link

Unable to remove Google Assistant SDK Integration because of accentially delete oAuth client #124241

Closed marvin9292 closed 3 days ago

marvin9292 commented 3 weeks ago

The problem

Hi all, I am newbie of HA. I recently installed the HA OS on HA green. I have installed the integration of google assistant SDK but recently got oAuth problem. Then I deleted the Oauth. Now I can't reconfigurate the HA google assistant SDK and also cannot delete the credential in HA.

When I reconfigurate the google assistant integration, it shows the error. "Error 401: deleted_client Request details: flowName=GeneralOAuthFlow"

When I delete the credential in Home assistant, it show this error. "Deleting application credentials failed Cannot delete credential in use by integration google"

Also the 3 dots at google assistant SDK integration doen't show the remove option. I tried to remove the whole project in google cloud platform and also restart the HA system but also doesn't work.

May I know how can I add the new oAuth for google assistant SDK integration? Thank you!

Core: 2024.8.2 Supervisor: 2024.08.0 Operating System: 13.0 Frontend: 20240809.0

What version of Home Assistant Core has the issue?

2024.8.2

What was the last working version of Home Assistant Core?

2024.8.2

What type of installation are you running?

Home Assistant OS

Integration causing the issue

google assistant SDK

Link to integration documentation on our website

https://www.home-assistant.io/integrations/google_assistant_sdk/

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

Version | core-2024.8.2 Installation type | Home Assistant OS Development | false Supervisor | true Docker | true User | root Virtual environment | false Python version | 3.12.4 Operating system family | Linux Operating system version | 6.6.44-haos CPU architecture | aarch64 Configuration directory | /config

home-assistant[bot] commented 3 weeks ago

Hey there @tronikos, mind taking a look at this issue as it has been labeled with an integration (google_assistant_sdk) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `google_assistant_sdk` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign google_assistant_sdk` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


google_assistant_sdk documentation google_assistant_sdk source (message by IssueLinks)

L81ker commented 4 days ago

Hi @marvin9292 If you have a back up from before you deleted Oath, then in SETTINGS - SYSTEM - BACKUPS, restore that previous saved back up. If you developed any other dashboards or automations, you can save them first from File Editor or using Studio Code Server to something outside HA, and then copy it back afterwards. That should get you going again.

https://www.home-assistant.io/common-tasks/os/#restoring-a-backup

marvin9292 commented 3 days ago

Hi @marvin9292 If you have a back up from before you deleted Oath, then in SETTINGS - SYSTEM - BACKUPS, restore that previous saved back up. If you developed any other dashboards or automations, you can save them first from File Editor or using Studio Code Server to something outside HA, and then copy it back afterwards. That should get you going again.

https://www.home-assistant.io/common-tasks/os/#restoring-a-backup

Thank you! Problem solved!