very strange behavior on my alexa media player, if i restart i have to run “ha core rebuild” in ssh for alexa to work, if dont then i cant remove alexa from integration,i cant ad it or annything, im getting this in the logg:
Logger: aiohttp.server
Source: custom_components/alexa_media/init.py:15
First occurred: 2:44:51 PM (1 occurrences)
Last logged: 2:44:51 PM
Error handling request
Traceback (most recent call last):
File “/usr/local/lib/python3.7/site-packages/aiohttp/web_protocol.py”, line 418, in start
resp = await task
File “/usr/local/lib/python3.7/site-packages/aiohttp/web_app.py”, line 458, in _handle
resp = await handler(request)
File “/usr/local/lib/python3.7/site-packages/aiohttp/web_middlewares.py”, line 119, in impl
return await handler(request)
File “/usr/src/homeassistant/homeassistant/components/http/real_ip.py”, line 39, in real_ip_middleware
return await handler(request)
File “/usr/src/homeassistant/homeassistant/components/http/ban.py”, line 72, in ban_middleware
return await handler(request)
File “/usr/src/homeassistant/homeassistant/components/http/auth.py”, line 127, in auth_middleware
return await handler(request)
File “/usr/src/homeassistant/homeassistant/components/http/view.py”, line 123, in handle
result = await result
File “/usr/src/homeassistant/homeassistant/components/config/config_entries.py”, line 130, in post
return await super().post(request)
File “/usr/src/homeassistant/homeassistant/components/http/data_validator.py”, line 50, in wrapper
result = await method(view, request, *args, **kwargs)
File “/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py”, line 62, in post
handler, context={“source”: config_entries.SOURCE_USER}
File “/usr/src/homeassistant/homeassistant/data_entry_flow.py”, line 100, in async_init
flow = await self.async_create_flow(handler, context=context, data=data)
File “/usr/src/homeassistant/homeassistant/config_entries.py”, line 504, in async_create_flow
integration.get_platform(“config_flow”)
File “/usr/src/homeassistant/homeassistant/loader.py”, line 277, in get_platform
f"{self.pkg_path}.{platform_name}"
File “/usr/local/lib/python3.7/importlib/init.py”, line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 1006, in _gcd_import
File “”, line 983, in _find_and_load
File “”, line 953, in _find_and_load_unlocked
File “”, line 219, in _call_with_frames_removed
File “”, line 1006, in _gcd_import
File “”, line 983, in _find_and_load
File “”, line 967, in _find_and_load_unlocked
File “”, line 677, in _load_unlocked
File “”, line 728, in exec_module
File “”, line 219, in _call_with_frames_removed
File “/config/custom_components/alexa_media/init.py”, line 15, in
from alexapy import AlexapyLoginError, WebsocketEchoClient, hide_email, hide_serial
File “/usr/local/lib/python3.7/site-packages/alexapy/init.py”, line 11, in
from .alexaapi import AlexaAPI
File “/usr/local/lib/python3.7/site-packages/alexapy/alexaapi.py”, line 37, in
class AlexaAPI:
File “/usr/local/lib/python3.7/site-packages/alexapy/alexaapi.py”, line 85, in AlexaAPI
) -> ClientResponse:
File “/usr/local/lib/python3.7/site-packages/backoff/_decorator.py”, line 181, in decorate
"backoff.on_exception applied to a regular function "
TypeError: backoff.on_exception applied to a regular function inside coroutine, this will lead to event loop hiccups. Use backoff.on_exception on coroutines in asynchronous code