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

Error on device update! since HA 2021.1.0 #2

Open
bussio opened this issue Jan 7, 2021 · 2 comments
Open

Error on device update! since HA 2021.1.0 #2

bussio opened this issue Jan 7, 2021 · 2 comments

Comments

@bussio
Copy link

bussio commented Jan 7, 2021

Since v 2021.1.0 it no longer works with the sensor. Can you please take a look at this ...

  • platform: idealo
    name: Magic2
    product_id: 4870979
    description: "Apple Magic Mouse 2 white"
    locale: DE

2021-01-07 09:12:53 ERROR (MainThread) [homeassistant.components.sensor] idealo: Error on device update!
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 359, 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
await task
File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/util/init.py", line 239, in wrapper
result = method(*args, **kwargs)
File "/config/custom_components/idealo/sensor.py", line 105, in update
self._data = response.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)

@napsio
Copy link
Collaborator

napsio commented Jan 8, 2021

I have to take a deeper look on that, but thank you for the information.

@bussio
Copy link
Author

bussio commented Feb 7, 2021

Have you already found a solution to the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants