|
发表于 2021-2-25 17:24:17
来自手机
|
显示全部楼层
zyzyzy123 发表于 2021-2-25 15:57
我今天又试了一下,当断电后,实体会全部消失,重新接电后,金制空气app一定要刷新一次确保显示本地设备 ...
我这一直报错,也不知道什么原因,不懂,不知道有没大神帮忙看看
Logger: root
Source: custom_components/ds_air/ds_air_service/decoder.py:525
First occurred: 上午7:15:16 (1 occurrences)
Last logged: 上午7:15:16
Uncaught thread exception
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 339, in __call__
return cls.__new__(cls, value)
File "/usr/local/lib/python3.8/enum.py", line 662, in __new__
raise ve_exc
ValueError: 102 is not a valid Humidity |
|