Yandex transport. Error on device update

I am getting this after few hours of normal work

yandex_transport: Error on device update!

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/", line 292, in _async_add_entity
    await entity.async_device_update(warning=False)
  File "/usr/src/homeassistant/homeassistant/helpers/", line 448, in async_device_update
    await self.hass.async_add_executor_job(self.update)
  File "/usr/local/lib/python3.7/concurrent/futures/", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/homeassistant/homeassistant/components/yandex_transport/", line 85, in update
    if "Events" in transport["BriefSchedule"]:
KeyError: 'BriefSchedule'

Same trouble

+1 Same trouble

post this issue on GitHub

Good afternoon. I have the same problem with integration, but the authors are working on it. Now (as a temporary solution), using the author GitHub. I use custom-component, everything works.

1 Like

Thanks for this solution!

BTW, What happens if I replace the original component files with the corrected ones instead of doing it through custom_components?

Updated file on GitHub with the changes from the author currently works with the service from Yandex. I do not have access to the source files, I used custom_components.