youdroid / home-assistant-sickchill

🎥 SickChill component to feed Upcoming Media Card.
3 stars 3 forks source link

Update for sensor.sickchill fails #3

Closed kobbra closed 4 years ago

kobbra commented 4 years ago

sensor keeps failing with following error

Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 279, in async_update_ha_state await self.async_device_update() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 472, in async_device_update await self.hass.async_add_executor_job(self.update) 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/sickchill/sensor.py", line 102, in update last_season = all_season_show['data'][str(nb_seasons)] KeyError: '0'

Config looks like: sensor:

youdroid commented 4 years ago

I will take a look at the problem, and I will let you know as soon as possible.

youdroid commented 4 years ago

I fixed it in V1.0 !

kobbra commented 4 years ago

Yes its working fine now! Thanks!

Regards, Martin Johansson

Sent from my iPhone so excuse any typo's

7 juni 2020 kl. 22:37 skrev youdroid notifications@github.com:



I fixed it in V1.0https://github.com/youdroid/home-assistant-sickchill/releases/tag/V1.0 !

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/youdroid/home-assistant-sickchill/issues/3#issuecomment-640276233, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ADXBUHID4GJP6VF35EN4KT3RVP3A3ANCNFSM4NXD6H2A.

ghost commented 3 years ago

I'm (still?) experiencing the same issue with Medusa (which is a fork, but the API should be the same).

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 278, in async_update_ha_state
    await self.async_device_update()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 471, in async_device_update
    await self.hass.async_add_executor_job(self.update)  # type: ignore
  File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/config/custom_components/sickchill/sensor.py", line 117, in update
    last_season = all_season_show['data'][str(nb_seasons)]
KeyError: '81'