Apr 18 21:01:50 hassbian hass[525]: #033[31m2018-04-18 21:01:50 ERROR (Thread-4) [custom_components.climate.saswell] Exception: Traceback (most recent call last):
Apr 18 21:01:50 hassbian hass[525]: File "/home/homeassistant/.homeassistant/custom_components/climate/saswell.py", line 203, in update
Apr 18 21:01:50 hassbian hass[525]: json = self.list()
Apr 18 21:01:50 hassbian hass[525]: File "/home/homeassistant/.homeassistant/custom_components/climate/saswell.py", line 227, in list
Apr 18 21:01:50 hassbian hass[525]: return self.request(LIST_URL)
Apr 18 21:01:50 hassbian hass[525]: File "/home/homeassistant/.homeassistant/custom_components/climate/saswell.py", line 277, in request
Apr 18 21:01:50 hassbian hass[525]: return requests.get(url, headers=headers).json()
Apr 18 21:01:50 hassbian hass[525]: File "/srv/homeassistant/lib/python3.5/site-packages/requests/models.py", line 892, in json
Apr 18 21:01:50 hassbian hass[525]: return complexjson.loads(self.text, **kwargs)
Apr 18 21:01:50 hassbian hass[525]: File "/usr/lib/python3.5/json/__init__.py", line 319, in loads
Apr 18 21:01:50 hassbian hass[525]: return _default_decoder.decode(s)
Apr 18 21:01:50 hassbian hass[525]: File "/usr/lib/python3.5/json/decoder.py", line 339, in decode
Apr 18 21:01:50 hassbian hass[525]: obj, end = self.raw_decode(s, idx=_w(s, 0).end())
Apr 18 21:01:50 hassbian hass[525]: File "/usr/lib/python3.5/json/decoder.py", line 357, in raw_decode
Apr 18 21:01:50 hassbian hass[525]: raise JSONDecodeError("Expecting value", s, err.value) from None
Apr 18 21:01:50 hassbian hass[525]: json.decoder.JSONDecodeError: Expecting value: line 6 column 1 (char 10)
Apr 18 21:01:50 hassbian hass[525]: #033[0m
Apr 18 21:01:50 hassbian hass[525]: #033[32m2018-04-18 21:01:50 INFO (MainThread) [homeassistant.core] Bus:Handling <Event system_log_event[L]: message=Exception: Traceback (most recent call last):
Apr 18 21:01:50 hassbian hass[525]: File "/home/homeassistant/.homeassistant/custom_components/climate/saswell.py", line 203, in update
Apr 18 21:01:50 hassbian hass[525]: json = self.list()
Apr 18 21:01:50 hassbian hass[525]: File "/home/homeassistant/.homeassistant/custom_components/climate/saswell.py", line 227, in list
Apr 18 21:01:50 hassbian hass[525]: return self.request(LIST_URL)
Apr 18 21:01:50 hassbian hass[525]: File "/home/homeassistant/.homeassistant/custom_components/climate/saswell.py", line 277, in request
Apr 18 21:01:50 hassbian hass[525]: return requests.get(url, headers=headers).json()
Apr 18 21:01:50 hassbian hass[525]: File "/srv/homeassistant/lib/python3.5/site-packages/requests/models.py", line 892, in json
Apr 18 21:01:50 hassbian hass[525]: return complexjson.loads(self.text, **kwargs)
Apr 18 21:01:50 hassbian hass[525]: File "/usr/lib/python3.5/json/__init__.py", line 319, in loads
Apr 18 21:01:50 hassbian hass[525]: return _default_decoder.decode(s)
Apr 18 21:01:50 hassbian hass[525]: File "/usr/lib/python3.5/json/decoder.py", line 339, in decode
Apr 18 21:01:50 hassbian hass[525]: obj, end = self.raw_decode(s, idx=_w(s, 0).end())
Apr 18 21:01:50 hassbian hass[525]: File "/usr/lib/python3.5/json/decoder.py", line 357, in raw_decode
Apr 18 21:01:50 hassbian hass[525]: raise JSONDecodeError("Expecting value", s, err.value) from None
Apr 18 21:01:50 hassbian hass[525]: json.decoder.JSONDecodeError: Expecting value: line 6 column 1 (char 10)
Apr 18 21:01:50 hassbian hass[525]: , level=ERROR, exception=, timestamp=1524056510.6886714, source=custom_components/climate/saswell.py>#033[0m
复制代码