Describe the Bug
When inCinemas isnt populated in the API, an error is returned
The Error
2020-07-18 16:56:07 ERROR (MainThread) [homeassistant.components.sensor] radarr_upcoming_media: Error on device update!
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 319, in _async_add_entity
await entity.async_device_update(warning=False)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 466, in async_device_update
self.update # type: ignore
File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/radarr_upcoming_media/sensor.py", line 187, in update
if days_until(movie['inCinemas'], self._tz) > -1:
KeyError: 'inCinemas'
Describe the Bug When inCinemas isnt populated in the API, an error is returned
The Error
Indicate if you followed all steps in the troubleshooting doc Yes
What data does the sensor display if any? None
What displays when visiting the API URL from the troubleshooting guide?
Does the default Home Assistant Radarr component work for you? Yes
Home Assistant Version 0.112.4
Additional Context Add any other context about the problem here.