Parcourir la source

Additional entity changes to use translated names.

These were missed in an earlier round, but picked up by a scan of the
differences in entities between 2024.2.1 and HEAD.
Jason Rumney il y a 1 an
Parent
commit
f25eb024d1

+ 0 - 1
custom_components/tuya_local/devices/blitzwolf_bwis6_alarm.yaml

@@ -87,7 +87,6 @@ secondary_entities:
         unit: "%"
         class: measurement
   - entity: binary_sensor
-    name: Low battery
     class: battery
     category: diagnostic
     dps:

+ 13 - 12
custom_components/tuya_local/devices/stadlerform_roger_purifier.yaml

@@ -1,6 +1,7 @@
-name: Stadler Form Roger
+name: Air purifier
 products:
   - id: bff126249136f505
+    name: Stadler Form Roger
 primary_entity:
   entity: fan
   dps:
@@ -13,15 +14,15 @@ primary_entity:
       mapping:
         # According to original reporter these are all progressivly faster
         # speeds, even though auto suggests something else.
-        - dps_val: "sleep"
+        - dps_val: sleep
           value: 20
-        - dps_val: "low"
+        - dps_val: low
           value: 40
-        - dps_val: "mid"
+        - dps_val: mid
           value: 60
-        - dps_val: "high"
+        - dps_val: high
           value: 80
-        - dps_val: "auto"
+        - dps_val: auto
           value: 100
 secondary_entities:
   - entity: light
@@ -42,28 +43,28 @@ secondary_entities:
   - entity: sensor
     name: Filter (Days)
     category: diagnostic
-    icon: "mdi:air-filter"
+    class: duration
     dps:
       - id: 16
         type: integer
         name: sensor
         unit: "d"
   - entity: sensor
-    icon: "mdi:air-filter"
+    class: pm25
     dps:
       - id: 2
         type: integer
         name: sensor
         unit: "ugm3"
   - entity: sensor
-    name: Total Volatile Organic Compunds
+    name: Total volatile organic compunds
     icon: "mdi:air-filter"
     dps:
       - id: 14
         type: integer
         name: sensor
   - entity: sensor
-    name: Air Quality
+    name: Air quality
     icon: "mdi:air-filter"
     dps:
       - id: 21
@@ -77,8 +78,8 @@ secondary_entities:
         type: string
         name: option
         mapping:
-          - dps_val: "cancel"
-            value: "cancel"
+          - dps_val: cancel
+            value: cancel
           - dps_val: "1h"
             value: "1 hour"
           - dps_val: "2h"