Alexa_media erroring

Just updated the alexa_media component. I’m continuously getting the below for each of my devices:

2020-01-01 16:27:26 ERROR (MainThread) [homeassistant.helpers.entity] Update for media_player.john_alexa fails
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 281, in async_update_ha_state
    await self.async_device_update()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 459, in async_device_update
    await self.async_update()
  File "/config/custom_components/alexa_media/helpers.py", line 143, in wrapper
    result = await func(*args, **kwargs)
  File "/config/custom_components/alexa_media/media_player.py", line 667, in async_update
    no_throttle=True)
  File "/config/custom_components/alexa_media/helpers.py", line 143, in wrapper
    result = await func(*args, **kwargs)
  File "/config/custom_components/alexa_media/media_player.py", line 371, in refresh
    self._parent_clusters))
  File "/config/custom_components/alexa_media/media_player.py", line 370, in <lambda>
    ['media_player'][x].state == STATE_PLAYING),
KeyError: '0096d7adfa104b7abfd8817f78c06c49'

Any idea what’s going on?

I’ve been having the same error.

The fix is in the works right now. I just tested the PR for the fix and it seems to be successful. Should be updated soon.

bug report:

PR to fix it: