question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

! Not Loaded after updating Home Assistant

See original GitHub issue

I’m suddenly getting !Not Loaded in the integrations list after updating home assistant. I did also update HACS and the integration and restarted but no luck. I am also unable to remove the integration so I can’t force a re-configure. I have tried a “redownload” through HACS also to no avail.

To Reproduce

  1. Simply update Home Assistant to: core-2021.12.0b6, supervisor-2021.12.1

Expected behavior Alexa media player to load or at least be removable

Screenshots image

System details

  • Home-assistant (version): core-2021.12.0b6, supervisor-2021.12.1
  • Hassio (Yes/No): YES
  • alexa_media (version from const.py or HA startup): 3.10.12
  • alexapy (version from pip show alexapy or HA startup): Can’t seem to sort how to see this
  • Amazon 2FA is enabled (y/n). YES

Logs These two errors in the logs are almost certainly pointing at the problem. I’m just not sure how to sort it out since I can’t seem to remove the integration

This error originated from a custom integration.

Logger: homeassistant.setup Source: custom_components/alexa_media/init.py:16 Integration: Alexa Media Player (documentation, issues) First occurred: 3:37:41 PM (1 occurrences) Last logged: 3:37:41 PM

Setup failed for alexa_media: unknown error Traceback (most recent call last): File “/usr/src/homeassistant/homeassistant/setup.py”, line 181, in _async_setup_component component = integration.get_component() File “/usr/src/homeassistant/homeassistant/loader.py”, line 522, in get_component cache[self.domain] = importlib.import_module(self.pkg_path) File “/usr/local/lib/python3.9/importlib/init.py”, line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File “<frozen importlib._bootstrap>”, line 1030, in _gcd_import File “<frozen importlib._bootstrap>”, line 1007, in _find_and_load File “<frozen importlib._bootstrap>”, line 986, in _find_and_load_unlocked File “<frozen importlib._bootstrap>”, line 680, in _load_unlocked File “<frozen importlib._bootstrap_external>”, line 850, in exec_module File “<frozen importlib._bootstrap>”, line 228, in _call_with_frames_removed File “/config/custom_components/alexa_media/init.py”, line 16, in <module> from alexapy import ( File “/usr/local/lib/python3.9/site-packages/alexapy/init.py”, line 16, in <module> from .alexaapi import AlexaAPI File “/usr/local/lib/python3.9/site-packages/alexapy/alexaapi.py”, line 21, in <module> from alexapy.aiohttp import ClientConnectionError, ClientResponse File “/usr/local/lib/python3.9/site-packages/alexapy/aiohttp/init.py”, line 6, in <module> from .client import ( File “/usr/local/lib/python3.9/site-packages/alexapy/aiohttp/client.py”, line 35, in <module> from . import hdrs, http, payload File “/usr/local/lib/python3.9/site-packages/alexapy/aiohttp/http.py”, line 7, in <module> from .http_parser import ( File “/usr/local/lib/python3.9/site-packages/alexapy/aiohttp/http_parser.py”, line 15, in <module> from .helpers import NO_EXTENSIONS, BaseTimerContext File “/usr/local/lib/python3.9/site-packages/alexapy/aiohttp/helpers.py”, line 667, in <module> class CeilTimeout(async_timeout.timeout): TypeError: function() argument ‘code’ must be code, not str

This error originated from a custom integration.

Logger: aiohttp.server Source: custom_components/alexa_media/init.py:16 Integration: Alexa Media Player (documentation, issues) First occurred: 3:40:54 PM (1 occurrences) Last logged: 3:40:54 PM

Error handling request Traceback (most recent call last): File “/usr/local/lib/python3.9/site-packages/aiohttp/web_protocol.py”, line 435, in _handle_request resp = await request_handler(request) File “/usr/local/lib/python3.9/site-packages/aiohttp/web_app.py”, line 504, in _handle resp = await handler(request) File “/usr/local/lib/python3.9/site-packages/aiohttp/web_middlewares.py”, line 117, in impl return await handler(request) File “/usr/src/homeassistant/homeassistant/components/http/security_filter.py”, line 60, in security_filter_middleware return await handler(request) File “/usr/src/homeassistant/homeassistant/components/http/forwarded.py”, line 98, in forwarded_middleware return await handler(request) File “/usr/src/homeassistant/homeassistant/components/http/request_context.py”, line 28, in request_context_middleware return await handler(request) File “/usr/src/homeassistant/homeassistant/components/http/ban.py”, line 78, in ban_middleware return await handler(request) File “/usr/src/homeassistant/homeassistant/components/http/auth.py”, line 181, in auth_middleware return await handler(request) File “/usr/src/homeassistant/homeassistant/components/http/view.py”, line 137, in handle result = await result File “/usr/src/homeassistant/homeassistant/components/config/config_entries.py”, line 71, in delete result = await hass.config_entries.async_remove(entry_id) File “/usr/src/homeassistant/homeassistant/config_entries.py”, line 831, in async_remove await entry.async_remove(self.hass) File “/usr/src/homeassistant/homeassistant/config_entries.py”, line 487, in async_remove component = integration.get_component() File “/usr/src/homeassistant/homeassistant/loader.py”, line 522, in get_component cache[self.domain] = importlib.import_module(self.pkg_path) File “/usr/local/lib/python3.9/importlib/init.py”, line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File “<frozen importlib._bootstrap>”, line 1030, in _gcd_import File “<frozen importlib._bootstrap>”, line 1007, in _find_and_load File “<frozen importlib._bootstrap>”, line 986, in _find_and_load_unlocked File “<frozen importlib._bootstrap>”, line 680, in _load_unlocked File “<frozen importlib._bootstrap_external>”, line 850, in exec_module File “<frozen importlib._bootstrap>”, line 228, in _call_with_frames_removed File “/config/custom_components/alexa_media/init.py”, line 16, in <module> from alexapy import ( File “/usr/local/lib/python3.9/site-packages/alexapy/init.py”, line 16, in <module> from .alexaapi import AlexaAPI File “/usr/local/lib/python3.9/site-packages/alexapy/alexaapi.py”, line 21, in <module> from alexapy.aiohttp import ClientConnectionError, ClientResponse File “/usr/local/lib/python3.9/site-packages/alexapy/aiohttp/init.py”, line 6, in <module> from .client import ( File “/usr/local/lib/python3.9/site-packages/alexapy/aiohttp/client.py”, line 35, in <module> from . import hdrs, http, payload File “/usr/local/lib/python3.9/site-packages/alexapy/aiohttp/http.py”, line 7, in <module> from .http_parser import ( File “/usr/local/lib/python3.9/site-packages/alexapy/aiohttp/http_parser.py”, line 15, in <module> from .helpers import NO_EXTENSIONS, BaseTimerContext File “/usr/local/lib/python3.9/site-packages/alexapy/aiohttp/helpers.py”, line 667, in <module> class CeilTimeout(async_timeout.timeout): TypeError: function() argument ‘code’ must be code, not str

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:4
  • Comments:5

github_iconTop GitHub Comments

1reaction
aljuboricommented, Dec 11, 2021

same her after updating to 2021.12 Not loaded

0reactions
tkernaghancommented, Dec 12, 2021

After you apply the HA update go into HACS and you should see a pending update for Alexa Media Player, update AMP and restart HA. Afterwards AMP should load properly.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting your configuration - Home Assistant
Common problems with tweaking your configuration and their solutions.
Read more >
Integration NOT LOADED after updating home assistant to ...
This error originated from a custom integration. Logger: homeassistant.setup. Source: custom_components/webrtc/utils.py:74
Read more >
Did anyone else just stop upgrading Home Assistant and the ...
If you're satisfied with your setup, the I wouldnt criticize you for not updating since things break every update.
Read more >
Updating Home Assistant
After updating, you must restart Home Assistant for the changes to take effect. This means that you will have to restart hass itself...
Read more >
Frequently Asked Questions — ESPHome
And in Home Assistant, there's a simple UPDATE button when there's an update available as with all add-ons. How do I update to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found