majuss / lupupy

A python3 library to control the Lupusec alarm control panel.
MIT License
8 stars 12 forks source link

Lupusc X1Plus #9

Closed allgrinder closed 2 years ago

allgrinder commented 3 years ago

Hey,

first of alle merry chrismas! In HA I cant setup the lupupy.py. I got the following message

File "/usr/src/homeassistant/homeassistant/setup.py", line 213, in _async_setup_component result = 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/components/lupusec/__init__.py", line 45, in setup hass.data[DOMAIN] = LupusecSystem(username, password, ip_address, name) File "/usr/src/homeassistant/homeassistant/components/lupusec/__init__.py", line 67, in __init__ self.lupusec = lupupy.Lupusec(username, password, ip_address) File "/config/lupupy/__init__.py", line 40, in __init__ self._panel = self.get_panel() File "/config/lupupy/__init__.py", line 116, in get_panel panel = self.clean_json(response.text)['updates'] File "/config/lupupy/__init__.py", line 63, in clean_json textdata = demjson.decode(textdata) File "/usr/local/lib/python3.8/site-packages/demjson.py", line 5696, in decode result = j.decode( txt, File "/usr/local/lib/python3.8/site-packages/demjson.py", line 4915, in decode raise errors[0] demjson.JSONDecodeError: Unexpected text after end of JSON value

majuss commented 2 years ago

@allgrinder Try the latest lupupy version