'Invalid Built-In 2FA key' after Home Assistant update
See original GitHub issueDescribe the bug Upgraded Alexa Media Player in HACS (was perfectly working/authenticated via 2FA prior to upgrade), I am prompted to “reconfigure” the Integration. When I click on “Reconfigure” for Alexa Media Player Integration; and re-enter a new 2FA App Key provided by my officially registered Amazon 2FA app, I am prompted IMMEDIATELY with the error: Invalid Built-In 2FA key. It responds with that error so quickly; it doesn’t even appear to check anything online.
To Reproduce
- Go to Integrations
- Click on RECONFIGURE
- Enter valid 2FA Key (while still good)
- Prompted with “Invalid Built-in 2FA key” error
Expected behavior It should authenticate after entering a valid 2FA key
System details
- Home-assistant (version): 2022.7.7
- Hassio (Yes/No): Yes (VirtualBox VM on Windows 10 host)
- alexa_media (version from
const.py
or HA startup): 4.1.0 - alexapy (version from
pip show alexapy
or HA startup): Not sure - Amazon 2FA is enabled (y/n). Y
Logs HomeAssistant-Log-Alexa.log
Additional context I have already tried completely clearing all Web browser cache (cookies, files, images, etc.) before authenticating. I enabled advanced debugging for this Integration: Advanced_Debug.zip
Update: The second Integration below (with my amazon email account) changed from red to normal after rebooting Home Assistant:
It switches back to red after a subsequent reboot of Home Assistant:
It keeps switching back and forther after each subsequent reboot.
Issue Analytics
- State:
- Created a year ago
- Comments:5
Top GitHub Comments
OMG Thank you! I literally tried everything to make this work; except for leaving that field blank! I’m embarrassed to say how many hours I spent on this to make it work.
Is there any way you guys would please consider changing that field’s description to say something like: Optional: For special cases only!
It would prevent others from making the same mistake I did. Thank you for your help and consideration.
Hi guys, I have another problem, I don’t write anything on 2FA field, and I click on send, but web does nothing, neither open a amazon web nor accept the rest of fields, but I don’t receive any error.
So I have the same “error” that jhalak1984 said. Please help us