-
-
Notifications
You must be signed in to change notification settings - Fork 661
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
青萍空气检测仪2所有传感器不可用 #1980
Comments
Exact same problem. |
My Qingping works only reverted to 0.7.22 |
how to revert back to old version
|
I hope the integration developer will be able to find a solution to the problem. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Device model / 设备型号
cgllc.airm.cgs2
Component version / 插件版本
0.7.24
HA core version / HA版本
2024.11.3
Integrated mode / 集成方式
Automatic (自动模式)
The problem / 问题详情
青萍空气检测仪2所有传感器不可用
Entity attributes / 实体属性
Home Assistant Logs / 系统日志
此错误来自自定义集成。
日志记录器: homeassistant
来源: custom_components/xiaomi_miot/sensor.py:521
集成: Xiaomi Miot Auto (文档, 问题)
首次出现: 00:57:53 (581 次总计出现)
上次记录: 01:48:48
Error doing job: Task exception was never retrieved (None)
Error doing job: Exception in callback Entity._async_write_ha_state_from_call_soon_threadsafe() (None)
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 1056, in _async_update_entity_states
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 962, in async_update_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1132, in _async_write_ha_state
self.__async_calculate_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1069, in __async_calculate_state
state = self._stringify_state(available)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1013, in _stringify_state
if (state := self.state) is None:
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/sensor/init.py", line 544, in state
value = self.native_value
^^^^^^^^^^^^^^^^^
File "/config/custom_components/xiaomi_miot/sensor.py", line 521, in native_value
if not prop.range_min() <= val <= prop.range_max():
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: '<=' not supported between instances of 'int' and 'str'
The text was updated successfully, but these errors were encountered: