- 积分
- 122
- 金钱
- 106
- 威望
- 0
- 贡献
- 0
- HASS币
- 0
注册会员
- 积分
- 122
- 金钱
- 106
- HASS币
- 0
|
发表于 2023-3-17 13:38:37
|
显示全部楼层
配置完账号没有实体,型号也支持不晓得问题在哪,重载集成以后会报错
2023-03-17 11:35:42.587 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up deye_dehumidifier platform for sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 293, in _async_setup_platform
await asyncio.shield(task)
File "/config/custom_components/deye_dehumidifier/sensor.py", line 31, in async_setup_entry
DeyeHumiditySensor(device, data[DATA_MQTT_CLIENT]),
File "/config/custom_components/deye_dehumidifier/sensor.py", line 49, in __init__
super().__init__(device, mqtt_client)
File "/config/custom_components/deye_dehumidifier/__init__.py", line 115, in __init__
self.device_state = DeyeDeviceState(self._device["payload"])
File "/usr/local/lib/python3.10/site-packages/libdeye/device_state_command.py", line 86, in __init__
self.mode = DeyeDeviceMode(int(state[9], 16))
File "/usr/local/lib/python3.10/enum.py", line 385, in __call__
return cls.__new__(cls, value)
File "/usr/local/lib/python3.10/enum.py", line 710, in __new__
raise ve_exc
ValueError: 5 is not a valid DeyeDeviceMode
|
|