alandtse / alexa_media_player

This is a custom component to allow control of Amazon Alexa devices in Home Assistant using the unofficial Alexa API.
Apache License 2.0
1.44k stars 278 forks source link

Alexa asks for re-authentication with TuneIn. #2545

Open Xoordak opened 11 hours ago

Xoordak commented 11 hours ago

Describe the bugs

Once Alexa Media Player is installed and all devices are correctly configured. Using 2FA, it is amazon.it. Alexa stays connected until TuneIn is used by calling it with Alexa, 'Alexa, play Radio Radio.' After that, it disconnects, and the procedure needs to be done from scratch. This happens every time.

Screenshots IMG_3836

Logger: homeassistant.config_entries Source: config_entries.py:604 First occurred: 8:38:25 PM (1 occurrences) Last logged: 8:38:25 PM

Error setting up entry XXXXXXX@icloud.com - amazon.it for alexa_media Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 604, in async_setup result = await component.async_setup_entry(hass, self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/alexa_media/init.py", line 361, in async_setup_entry await login.login(cookies=await login.load_cookie()) File "/usr/local/lib/python3.12/site-packages/alexapy/helpers.py", line 137, in wrapper return await func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/alexapy/alexalogin.py", line 713, in login self._site = await self._process_page(await post_resp.text(), site) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/alexapy/alexalogin.py", line 1506, in _process_page error_message += list_item.find("span").string TypeError: can only concatenate str (not "NoneType") to str

System details

Home Core 2024.9.2 Supervisor 2024.09.1 Operating System 13.1 Frontend 20240909.1 Alexa Media Player v4.13.1

sherkan-666 commented 11 hours ago

Same for me.