Recurring Error in Log due to Python Error "media_player.py"

I get this error in my log 11 times in a row every 9 seconds. This is obviously filling up my log quickly.

Does anyone know what might be causing it, and more importantly, how to fix it? It obviously seems like some error with my LG soundbar (I have LG ThinQ set up for my Dryer and the soundbar has Google Cast [I tried removing this integration no luck]).

2020-05-20 10:49:42 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 284, in async_update_ha_state
    self._async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 314, in _async_write_ha_state
    attr = self.capability_attributes
  File "/usr/src/homeassistant/homeassistant/components/media_player/__init__.py", line 784, in capability_attributes
    source_list = self.source_list
  File "/usr/src/homeassistant/homeassistant/components/lg_soundbar/media_player.py", line 167, in source_list
    sources.append(temescal.functions[function])
IndexError: list index out of range

This issue is being looked into here:
https://github.com/home-assistant/core/pull/35892

@Hass10 ,
I am having the same issues you described… last night I had 1147 related errors.
I first noticed this trouble in March 2022, On a daily basis I have been searching for someone that knows how to fix this problem. Can you help me?

2022-03-13 12:46:25 WARNING (MainThread) [alexapy.alexalogin] No access token found; falling back to credential login instead of oauth.
2022-03-13 12:46:26 WARNING (MainThread) [alexapy.alexawebsocket] mac_dms not detected; websocket likely won't connect
2022-04-27 10:18:38 ERROR (MainThread) [homeassistant.components.alexa.state_report] Error when sending ChangeReport for binary_sensor.kasa_smart_plug_150 to Alexa: INVALID_ACCESS_TOKEN_EXCEPTION: Access token is not valid.
2022-04-27 10:53:33 WARNING (MainThread) [homeassistant.components.http.ban] Login attempt or request with invalid authentication from ec2-18-210-7-77.compute-1.amazonaws.com (18.210.7.77). (python-urllib3/1.26.6)

I have thousand plus more examples… Same thing :cry:. Any ideas?

Hey Roger,

I don’t think your issue is too similar to what mine was. Mine was specific to LG soundbar, yours is Alexa based by the looks of it.

You have a few options if you’re still getting multiple issues for a component:

  1. See if you can fix it (check the issues log on GitHub for users with similar issues).
  2. Ignore the logs: Logger - Home Assistant

Just having a read of your specific logs, it seems like an issue with your oauth login details. Try logging into Alexa with the login details you provided to Home Assistant? Did you change them recently? If so, update them.

Good luck!