NameError: name 'CONF_OAUTH_LOGIN' is not defined
See original GitHub issueDescribe the bug A clear and concise description of what the bug is.
After updated to version 4.0.0, I keep getting this setup error:
Logger: homeassistant.setup Source: custom_components/alexa_media/init.py:174 Integration: Alexa Media Player (documentation, issues) First occurred: 6:48:51 AM (1 occurrences) Last logged: 6:48:51 AM
Error during setup of component alexa_media Traceback (most recent call last): File “/usr/src/homeassistant/homeassistant/setup.py”, line 235, in _async_setup_component result = await task File “/config/custom_components/alexa_media/init.py”, line 174, in async_setup CONF_OAUTH_LOGIN: account.get(CONF_OAUTH_LOGIN, True), NameError: name ‘CONF_OAUTH_LOGIN’ is not defined
I had completely removed the integration, configuration, and attempted start from the beginning, but the same error occurs every time I restarted Home Assistant.
To Reproduce Steps to reproduce the behavior:
- Go to ‘…’
- Click on ‘…’
- Scroll down to ‘…’
- See error
- Add the integration using HACS
- Configure in configuration.yaml
- Boot up Home Assistant and I can see the error. No other steps are needed to duplicate the issue.
Expected behavior A clear and concise description of what you expected to happen.
I expect that when starting from scratch, I should be able to successfully add the integration and authenticate.
Screenshots If applicable, add screenshots to help explain your problem.
System details
- Home-assistant (version): 2022.5.5
- Hassio (Yes/No): (Please note you may have to restart hassio 2-3 times to load the latest version of alexapy after an update. This looks like a HA bug).
- alexa_media (version from
const.py
or HA startup): 4.0.0 - alexapy (version from
pip show alexapy
or HA startup): 4.0.0 - Amazon 2FA is enabled (y/n). We will not debug login issues if unanswered: Yes
Logs Please provide logs. We’ll be most likely asking for them anyway.
The two files, alexa_media.(email).get.html alexa_media.(email).post.html are NOT found because the setup never took place.
Additional context Add any other context about the problem here.
I have tried to uninstall and re-install at least 3 times without success.
Issue Analytics
- State:
- Created a year ago
- Reactions:2
- Comments:11
Top GitHub Comments
As a quick fix for us till it gets solved 😃
Open
custom_components/alexa_media/const.py
and add the following to the line 48Open
custom_components/alexa_media/__init__.py
and add the following to line 70Restart Home Assistant, and open the integrations section as it might require to reauthenticate
I continue to have authentication problems with version 4.0.1. I did a roll-back to v3.11.3 and everything works fine … Many thanks