浏览代码

Nedis air quality: use new _parts class for VOC sensor.

Since the VOC sensor of this device is using ppm, HA 2024.2 enforces
strongly that you use the volatile_organic_compounds_parts class
rather than the volatile_organic_compounds (which used to list ppm
as an allowed unit, but no longer does).

Issue #1601
Jason Rumney 2 年之前
父节点
当前提交
64d076ce91
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      custom_components/tuya_local/devices/nedis_airquality.yaml

+ 1 - 1
custom_components/tuya_local/devices/nedis_airquality.yaml

@@ -38,7 +38,7 @@ secondary_entities:
         mapping:
           - scale: 10
   - entity: sensor
-    class: volatile_organic_compounds
+    class: volatile_organic_compounds_parts
     dps:
       - id: 21
         type: integer