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

my_unifi #3

Open
buhralex opened this issue Oct 22, 2021 · 0 comments
Open

my_unifi #3

buhralex opened this issue Oct 22, 2021 · 0 comments

Comments

@buhralex
Copy link

buhralex commented Oct 22, 2021

Hey I just stumbled across an old thread in the homeassistant forum and found your my_unifi component.
I figured out, that I had to add a manifest.json but I cannot get this to work.

Can you by chance take a look at that.

Here is what happens when the component tries to start:

Source: custom_components/my_unifi/sensor.py:198
Integration: Sensor (documentation, issues)
First occurred: 19:18:12 (1 occurrences)
Last logged: 19:18:12

my_unifi: Error on device update!
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 431, in _async_add_entity
    await entity.async_device_update(warning=False)
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 618, in async_device_update
    await task
  File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/config/custom_components/my_unifi/sensor.py", line 107, in update
    self._data.update()
  File "/config/custom_components/my_unifi/sensor.py", line 239, in update
    device_list = (self.list_clients())
  File "/config/custom_components/my_unifi/sensor.py", line 198, in list_clients
    data = r.json()['data']
  File "/usr/local/lib/python3.9/site-packages/requests/models.py", line 910, in json
    return complexjson.loads(self.text, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/simplejson/__init__.py", line 525, in loads
    return _default_decoder.decode(s)
  File "/usr/local/lib/python3.9/site-packages/simplejson/decoder.py", line 370, in decode
    obj, end = self.raw_decode(s)
  File "/usr/local/lib/python3.9/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)
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

1 participant