Hi. AMP has been working wonderfully for about a year, until I did some upgrades yesterday.
I upgraded HA core from 2004.7.2 to 2004.9.1 (to maintain compatibility with the excellent Multi System Reactor
Then upgraded HA OS to latest version.
I suspect the OS upgrade is what did it but cannot be sure.
The dashboard has ‘Failed to set up’ and no change on reloading the integration. The log shows a concatenation error:
2024-10-14 08:26:01.501 WARNING (MainThread) [alexapy.helpers] alexalogin.login((<alexapy.alexalogin.AlexaLogin object at 0x7f6fbba390>,), {'cookies': {}}): An error occurred accessing AlexaAPI: An exception of type TypeError occurred. Arguments:
('can only concatenate str (not "NoneType") to str',)
2024-10-14 08:26:01.502 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry [email protected] - amazon.co.uk for alexa_media
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 586, 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 671, in login
site = await self._process_page(html, 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
I can’t see anything particularly similar in other threads and was hoping someone can point me in the right direction.
TIA
C