Ecowater python script stopped working after last appdeamon update

This python script in this topic:

Stopped working after the last appdeamon update which upgraded python to python 3.10

The error I get is:

2022-07-12 14:41:42.735619 WARNING EcoWater: Traceback (most recent call last):
File “/usr/lib/python3.10/site-packages/appdaemon/”, line 904, in worker
funcref(self.AD.sched.sanitize_timer_kwargs(app, args[“kwargs”]))
File “/config/appdaemon/apps/”, line 70, in run_parsing
jsonv = json.loads(data.text)
File “/usr/lib/python3.10/json/init .py”, line 346, in loads
return _default_decoder.decode(s)
File “/usr/lib/python3.10/json/”, line 340, in decode
raise JSONDecodeError(“Extra data”, s, end)
json.decoder.JSONDecodeError: Extra data: line 1 column 2 (char 1)

The script is no longer maintained, and my python knowledge is near to 0.

Anybody to have a look at the script and adapt it to python 3.10? I think it’s just one line that needs to be updated.



Not sure why an upgrade to 310 would cause this issue but the exception would indicate there is something wrong with the data being fed into the json.loads() method.

Could be that the Ecowater API has changed, but in that case the other integration that exists would fail as well…