alexa_media_player: alexapy and config_flow error 4.12.5 (Running 2024.8.0b8)
IMPORTANT: Please search the issues, including closed issues, and the FAQ before opening a new issue. The template is mandatory; failure to use it will result in issue closure.
Describe the bug
When adding the integration and setting up, I am now presented with Alexapy and Authenitcation isssues (I’m sure due to not being able to call the apis and unsure if it’s related to AMP or AlexaPy.
To Reproduce
Install AMPS, login with details and this error occurs.
- Go to ‘…’
- Click on ‘…’
- Scroll down to ‘…’
- See error
Expected behavior
It should work and pull all Alexa devices
Screenshots
System details
- Home-assistant (version): 2024.8.0b8
- alexa_media (version from
const.pyor HA startup): 4.12.5 - alexapy (version from
pip show alexapyor HA startup): 1.28.1 - Amazon 2FA is enabled (y/n). y
Logs
Alexa Media Reauthentication Required
Reauthenticate [removed](mailto:removed) on the [Integrations](removed url) page. Relogin required after 0:00:00.226034 and 1 api calls.
Logger: alexapy.helpers
Source: runner.py:190
First occurred: 11:29:39 AM (7 occurrences)
Last logged: 11:29:39 AM
alexaapi.get_authentication((<alexapy.alexalogin.AlexaLogin object at 0x7fb391c7d970>,), {}): An error occurred accessing AlexaAPI: An exception of type AssertionError occurred. Arguments: ()
alexaapi.get_devices((<alexapy.alexalogin.AlexaLogin object at 0x7fb391c7d970>,), {}): An error occurred accessing AlexaAPI: An exception of type AssertionError occurred. Arguments: ()
alexaapi.get_dnd_state((<alexapy.alexalogin.AlexaLogin object at 0x7fb391c7d970>,), {}): An error occurred accessing AlexaAPI: An exception of type AssertionError occurred. Arguments: ()
alexaapi.get_bluetooth((<alexapy.alexalogin.AlexaLogin object at 0x7fb391c7d970>,), {}): An error occurred accessing AlexaAPI: An exception of type AssertionError occurred. Arguments: ()
alexaapi.get_device_preferences((<alexapy.alexalogin.AlexaLogin object at 0x7fb391c7d970>,), {}): An error occurred accessing AlexaAPI: An exception of type AssertionError occurred. Arguments: ()
This error originated from a custom integration.
Logger: homeassistant
Source: custom_components/alexa_media/config_flow.py:815
integration: Alexa Media Player (documentation, issues)
First occurred: 11:29:39 AM (1 occurrences)
Last logged: 11:29:39 AM
Error doing job: Task exception was never retrieved (None)
Traceback (most recent call last):
File "/config/custom_components/alexa_media/__init__.py", line 251, in relogin
if await test_login_status(hass, config_entry, login_obj):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/alexa_media/__init__.py", line 1421, in test_login_status
] = await hass.config_entries.flow.async_init(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1293, in async_init
flow, result = await self._async_init(flow_id, handler, context, data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1323, in _async_init
result = await self._async_handle_step(flow, flow.init_step, data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 516, in _async_handle_step
result: _FlowResultT = await getattr(flow, method)(user_input)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/alexa_media/config_flow.py", line 578, in async_step_reauth
reauth_schema = self._update_schema_defaults()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/alexa_media/config_flow.py", line 815, in _update_schema_defaults
CONF_HASS_URL, default=self.config.get(CONF_HASS_URL, hass_url)
^^^^^^^^
NameError: name 'hass_url' is not defined
Additional context
When going to terminal and calling for the pip show alexapy I got no package found, so I installed it with install alexapy and have version 1.28.1
I have tried fully removing AMP and restarting each uninstall and install step to make sure nothing is left behind but it always results back to these two errors.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 4
- Comments: 15 (1 by maintainers)
Yeah I tried that, still get the same errors thrown at me.
Known issue #2408
Why was this issue closed? The integration IS NOT working.
No luck uninstalling and re-installing. The integration “installs” but none of my devices are listed. If I reconfigure I just get errors:
And: