Skip to content

OneDrive failing to setup #141002

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
abmantis opened this issue Mar 20, 2025 · 7 comments · May be fixed by #145301
Open

OneDrive failing to setup #141002

abmantis opened this issue Mar 20, 2025 · 7 comments · May be fixed by #145301

Comments

@abmantis
Copy link
Member

abmantis commented Mar 20, 2025

The problem

OneDrive setup has failed after a reboot. This has happened at least twice, both times after a power loss. Could be related to connectivity loss, since by the time HA boots the router may still be booting up.

Reloading the integration manually makes it work again.

What version of Home Assistant Core has the issue?

core-2025.3.3

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

OneDrive

Link to integration documentation on our website

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

Diagnostics information

No response

Example YAML snippet

Anything in the logs that might be useful for us?

Logger: homeassistant.config_entries
Source: config_entries.py:753
First occurred: 07:39:09 (1 occurrences)
Last logged: 07:39:09

Error setting up entry Abilio Costa's OneDrive for onedrive
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 753, in __async_setup_with_context
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/onedrive/__init__.py", line 44, in async_setup_entry
    client, get_access_token = await _get_onedrive_client(hass, entry)
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/onedrive/__init__.py", line 188, in _get_onedrive_client
    implementation = await async_get_config_entry_implementation(hass, entry)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/config_entry_oauth2_flow.py", line 437, in async_get_config_entry_implementation
    raise ValueError("Implementation not available")
ValueError: Implementation not available

Additional information

No response

@home-assistant
Copy link

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

Code owner commands

Code owners of onedrive 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 onedrive 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)


onedrive documentation
onedrive source
(message by IssueLinks)

@PixelPusher247

This comment has been minimized.

@zweckj

This comment has been minimized.

@Coder84619

This comment has been minimized.

@zweckj

This comment has been minimized.

@home-assistant
Copy link

Hey there @home-assistant/core, mind taking a look at this issue as it has been labeled with an integration (application_credentials) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of application_credentials 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 application_credentials 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)


application_credentials documentation
application_credentials source
(message by IssueLinks)

@zweckj
Copy link
Member

zweckj commented May 19, 2025

had the same issue today, wondering if it's related to async_get_config_entry_implementation being executed in a method, so some call order is off...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants