2024-11-08 18:59:23.709 INFO (MainThread) [custom_components.xiaomi_miot.core.device.xiaomi.aircondition.m4] State updater: 1.1.0 🛜
2024-11-08 18:59:23.710 ERROR (MainThread) [homeassistant.components.climate] xiaomi_miot: Error on device update!
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 724, in _async_add_entity
await entity.async_device_update(warning=False)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1300, in async_device_update
await self.async_update()
File "/config/custom_components/xiaomi_miot/climate.py", line 231, in async_update
await super().async_update()
File "/config/custom_components/xiaomi_miot/init.py", line 1099, in async_update
result = await self.device.update_miot_status(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/xiaomi_miot/core/device.py", line 746, in update_miot_status
self.dispatch(self.decode(results))
^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/xiaomi_miot/core/device.py", line 509, in decode
self.decode_one(payload, value)
File "/config/custom_components/xiaomi_miot/core/device.py", line 524, in decode_one
conv.decode(self, payload, value.get('value'))
File "/config/custom_components/xiaomi_miot/core/converters.py", line 188, in decode
super().encode(device, payload, value / max * 255.0)
TypeError: unsupported operand type(s) for /: 'int' and 'NoneType'
Device model / 设备型号
xiaomi.aircondition.m4
Component version / 插件版本
v1.0.0b2
HA core version / HA版本
2024.10.4
Integrated mode / 集成方式
Local (本地模式)
The problem / 问题详情
更新插件后,小米空调设备数据无法获取,疑似数据转换失败导致
Entity attributes / 实体属性
Home Assistant Logs / 系统日志
2024-11-08 18:59:23.709 INFO (MainThread) [custom_components.xiaomi_miot.core.device.xiaomi.aircondition.m4] State updater: 1.1.0 🛜 2024-11-08 18:59:23.710 ERROR (MainThread) [homeassistant.components.climate] xiaomi_miot: Error on device update! Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 724, in _async_add_entity await entity.async_device_update(warning=False) File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1300, in async_device_update await self.async_update() File "/config/custom_components/xiaomi_miot/climate.py", line 231, in async_update await super().async_update() File "/config/custom_components/xiaomi_miot/init.py", line 1099, in async_update result = await self.device.update_miot_status( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/xiaomi_miot/core/device.py", line 746, in update_miot_status self.dispatch(self.decode(results)) ^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/xiaomi_miot/core/device.py", line 509, in decode self.decode_one(payload, value) File "/config/custom_components/xiaomi_miot/core/device.py", line 524, in decode_one conv.decode(self, payload, value.get('value')) File "/config/custom_components/xiaomi_miot/core/converters.py", line 188, in decode super().encode(device, payload, value / max * 255.0)