-
Notifications
You must be signed in to change notification settings - Fork 304
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
reauth flow without a link to the config entry #2815
Comments
same here, after reauthentication, it takes some hours and the integration need reauthentication again |
Are you using an automation to poll the status of Alexa Media Player or any other automation that triggers the API on a regular basis? It seems like AMP now needs reauthentication after a specific number of API-Calls. |
no, no automation. But i have 12 alexa devices at home |
Since I've never seen a notification that the integration needs to be reconfigured (and I fail to understand why others do), can someone who does test this code modification as per the blog post "Reauth and reconfigure flows need to be linked to a config entry"?
I suspect that for those that do see this reauth sequence, their AMP installation is for some reason unable to refresh the token that is issued by Amazon when authentication is successful upon expiry of that token. |
That's not the issue. Amazon issues a session token following successful authentication that AMP then uses to continue using the API without reauthenticating every single time. The session token has a limited lifetime and must be refreshed when it expires. I suspect the refresh is failing for some reason and is thereby forcing the reauth process to occur. It'll take someone with the issue to dig inside their debug logs and analyze if that's the issue and why it's failing.
I have 10 Alexa devices. The number of Alexa devices is not a factor. |
should i enable the debug log for the media player integration? If the issue occurs, i can upload the file. |
That would be a good start.
|
Describe the bug
Detected that custom integration 'alexa_media' initialises a reauth flow without a link to the config entry at custom_components/alexa_media/init.py, line 1553: ] = await hass.config_entries.flow.async_init(. This will stop working in Home Assistant 2025.12,
To Reproduce
Wait until you receive a notification that the integration needs to be reconfigured and click through the individual steps. Then take a look at the log.
Expected behavior
No Warnings.
System details
const.py
or HA startup log): 5.4.0pip show alexapy
in homeasssistant container or HA startup log): 1.29.5Debug Logs (alexa_media & alexapy)
-Detected that custom integration 'alexa_media' initialises a reauth flow without a link to the config entry at custom_components/alexa_media/init.py, line 1553: ] = await hass.config_entries.flow.async_init(. This will stop working in Home Assistant 2025.12, please create a bug report at https://github.com/alandtse/alexa_media_player/issues.
Additional context
Related developer blog entry: (https://developers.home-assistant.io/blog/2024/11/04/reauth-reconfigure-entry-id/).
The text was updated successfully, but these errors were encountered: