|
发表于 2020-10-24 16:58:08
|
显示全部楼层
Logger: root
Source: custom_components/ds_air/ds_air_service/decoder.py:525
First occurred: 下午4:10:51 (1 occurrences)
Last logged: 下午4:10:51
Uncaught thread exception
ValueError: 6 is not a valid Humidity
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/threading.py", line 932, in _bootstrap_inner
self.run()
File "/config/custom_components/ds_air/ds_air_service/service.py", line 83, in run
res = self._sock.recv()
File "/config/custom_components/ds_air/ds_air_service/service.py", line 69, in recv
r, b = decoder(data)
File "/config/custom_components/ds_air/ds_air_service/decoder.py", line 23, in decoder
return result_factory(struct.unpack('<BHBBBBIBIBH' + str(length - 16) + 'sB', b[:length + 4])), b[length + 4:]
File "/config/custom_components/ds_air/ds_air_service/decoder.py", line 77, in result_factory
result.load_bytes(subbody)
File "/config/custom_components/ds_air/ds_air_service/decoder.py", line 525, in load_bytes
self.humidity = EnumControl.Humidity(d.read1())
File "/usr/local/lib/python3.8/enum.py", line 309, in __call__
return cls.__new__(cls, value)
File "/usr/local/lib/python3.8/enum.py", line 600, in __new__
raise exc
File "/usr/local/lib/python3.8/enum.py", line 584, in __new__
result = cls._missing_(value)
File "/usr/local/lib/python3.8/enum.py", line 613, in _missing_
raise ValueError("%r is not a valid %s" % (value, cls.__name__))
ValueError: 6 is not a valid Humidity |
|