Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update for sensor.sickchill fails #16

Open
Marcmk1 opened this issue May 6, 2021 · 2 comments
Open

Update for sensor.sickchill fails #16

Marcmk1 opened this issue May 6, 2021 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@Marcmk1
Copy link

Marcmk1 commented May 6, 2021

Update for sensor.sickchill fails

  • platform: sickchill
    name: sickchill
    token: !secret token-sc
    host: !secret host-sc
    port: 8081
    protocol: 'http'

Update for sensor.sickchill fails
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 474, in async_device_update
raise exc
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 86, in update
ifs_tv_shows = self.get_infos(self.protocol, self.host, self.port, self.token, self.web_root, 'shows')
File "/config/custom_components/sickchill/sensor.py", line 154, in get_infos
ifs_movies = requests.get(url).json()
File "/usr/local/lib/python3.8/site-packages/requests/models.py", line 900, in json
return complexjson.loads(self.text, **kwargs)
File "/usr/local/lib/python3.8/site-packages/simplejson/init.py", line 525, in loads
return _default_decoder.decode(s)
File "/usr/local/lib/python3.8/site-packages/simplejson/decoder.py", line 370, in decode
obj, end = self.raw_decode(s)
File "/usr/local/lib/python3.8/site-packages/simplejson/decoder.py", line 400, in raw_decode
return self.scan_once(s, idx=_w(s, idx).end())
simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Home Assistant 2021.2.3

Sickchill version
Branch: master
Commit: d76229cd404a162a707d189302990d8911ffe77e
Version: v2021.04.10-1
Database Version: 44.2

There are nog logs on SickChill

@Marcmk1 Marcmk1 added the bug Something isn't working label May 6, 2021
@youdroid
Copy link
Owner

youdroid commented May 6, 2021

Hi @Marcmk1,

Your problem comes from a call to the sickchill API to retrieve data from a series.

Before your probem everything worked fine? Have you recently added a TV series?
If so, that's the problem with this TV shows !

@Marcmk1
Copy link
Author

Marcmk1 commented May 7, 2021

This is the first time I'm using the sensor.

This is a new installation with SickChill.
Only my data were imported from a back-up before updating SickChill.

Hmm, so which Serie is it :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants