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
74.13k stars 31.12k forks source link

"Implementation not available" error #77442

Closed onlyoneme closed 2 years ago

onlyoneme commented 2 years ago

The problem

I've generated new keys on https://dev.netatmo.com/ and I've registered them in Application Credentials for Netatmo. Now my integration is failing to set up.

What version of Home Assistant Core has the issue?

2022.8.7

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Container

Integration causing the issue

Netatmo

Link to integration documentation on our website

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

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

2022-08-28 12:39:01.539 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Netatmo for netatmo
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 357, in async_setup
result = await component.async_setup_entry(hass, self)
File "/usr/src/homeassistant/homeassistant/components/netatmo/__init__.py", line 118, in async_setup_entry
await config_entry_oauth2_flow.async_get_config_entry_implementation(
File "/usr/src/homeassistant/homeassistant/helpers/config_entry_oauth2_flow.py", line 383, in async_get_config_entry_implementation
raise ValueError("Implementation not available")
ValueError: Implementation not available

Additional information

No response

probot-home-assistant[bot] commented 2 years ago

netatmo documentation netatmo source (message by IssueLinks)

probot-home-assistant[bot] commented 2 years ago

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

onlyoneme commented 2 years ago

I've removed Application Credentials for Netatmo and put keys into configuration file. After restart my credentials have been imported to Application Credentials, but I'm getting another error instead:

2022-08-28 13:07:33.737 DEBUG (MainThread) [homeassistant.components.netatmo.data_handler] 403 - Forbidden - Invalid access token (2) when accessing 'https://api.netatmo.com/api/homesdata'
2022-08-28 13:07:33.738 DEBUG (MainThread) [homeassistant.components.netatmo.data_handler] Publisher AsyncClimateTopology added
2022-08-28 13:07:33.770 DEBUG (MainThread) [homeassistant.components.netatmo.data_handler] 403 - Forbidden - Invalid access token (2) when accessing 'https://api.netatmo.com/api/getstationsdata'
2022-08-28 13:07:33.770 DEBUG (MainThread) [homeassistant.components.netatmo.data_handler] Publisher AsyncWeatherStationData added
2022-08-28 13:07:33.802 DEBUG (MainThread) [homeassistant.components.netatmo.data_handler] 403 - Forbidden - Invalid access token (2) when accessing 'https://api.netatmo.com/api/gethomecoachsdata'
2022-08-28 13:07:33.802 DEBUG (MainThread) [homeassistant.components.netatmo.data_handler] Publisher AsyncHomeCoachData added
2022-08-28 13:07:33.815 DEBUG (MainThread) [homeassistant.components.netatmo.data_handler] 403 - Forbidden - Invalid access token (2) when accessing 'https://api.netatmo.com/api/gethomedata'
2022-08-28 13:07:33.815 DEBUG (MainThread) [homeassistant.components.netatmo.data_handler] Publisher AsyncCameraData added
2022-08-28 13:07:33.855 DEBUG (MainThread) [homeassistant.components.netatmo.sensor] Adding weather sensors []
2022-08-28 13:07:33.855 DEBUG (MainThread) [homeassistant.components.netatmo.sensor] Adding weather sensors []
2022-08-28 13:07:33.864 WARNING (MainThread) [homeassistant.components.camera] Platform netatmo not ready yet: None; Retrying in background in 30 seconds
2022-08-28 13:07:33.865 WARNING (MainThread) [homeassistant.components.climate] Platform netatmo not ready yet: None; Retrying in background in 30 seconds
2022-08-28 13:07:33.867 WARNING (MainThread) [homeassistant.components.light] Platform netatmo not ready yet: None; Retrying in background in 30 seconds
2022-08-28 13:07:33.869 WARNING (MainThread) [homeassistant.components.select] Platform netatmo not ready yet: None; Retrying in background in 30 seconds
2022-08-28 13:07:33.870 WARNING (MainThread) [homeassistant.components.sensor] Platform netatmo not ready yet: None; Retrying in background in 30 seconds
2022-08-28 13:07:33.939 ERROR (MainThread) [homeassistant.components.netatmo] Error during webhook registration - 403 - Forbidden - Invalid access token (2) when accessing 'https://api.netatmo.com/api/addwebhook'
2022-08-28 13:07:59.673 DEBUG (MainThread) [homeassistant.components.netatmo.sensor] Adding weather sensors []
2022-08-28 13:07:59.674 DEBUG (MainThread) [homeassistant.components.netatmo.sensor] Adding weather sensors []
2022-08-28 13:08:59.729 DEBUG (MainThread) [homeassistant.components.netatmo.sensor] Adding weather sensors []
2022-08-28 13:08:59.729 DEBUG (MainThread) [homeassistant.components.netatmo.sensor] Adding weather sensors []
onlyoneme commented 2 years ago

Few hours later reauthorization option has appeared and the token has been renewed. Now it's working back.