Browse Source

feat!(translations): standardise air purifier fan translations

- some additional configs that did not have purifier in the name

Issue #1708
Jason Rumney 5 days ago
parent
commit
f528f6d227

+ 3 - 3
custom_components/tuya_local/devices/honeywell_air_touch_p2.yaml

@@ -5,7 +5,7 @@ name: Air purifier
 #     model: Air Touch P2
 entities:
   - entity: fan
-    translation_only_key: fan_with_presets
+    translation_key: air_purifier
     dps:
       - id: 1
         type: boolean
@@ -15,11 +15,11 @@ entities:
         name: preset_mode
         mapping:
           - dps_val: auto
-            value: smart
+            value: auto
           - dps_val: sleep
             value: sleep
           - dps_val: manual
-            value: normal
+            value: manual
       - id: 4
         type: string
         name: speed

+ 5 - 6
custom_components/tuya_local/devices/renpho_rp_ap001s.yaml

@@ -5,8 +5,7 @@ products:
     model: RP-AP001S
 entities:
   - entity: fan
-    icon: "mdi:air-purifier"
-    translation_only_key: fan_with_presets
+    translation_key: air_purifier
     dps:
       - id: 1
         name: switch
@@ -16,13 +15,13 @@ entities:
         type: string
         mapping:
           - dps_val: low
-            value: sleep
+            value: low
           - dps_val: mid
-            value: fresh
+            value: medium
           - dps_val: high
-            value: strong
+            value: high
           - dps_val: auto
-            value: smart
+            value: auto
       - id: 19
         name: timer
         type: string

+ 2 - 3
custom_components/tuya_local/devices/truelife_air_purrifier_p3.yaml

@@ -8,8 +8,7 @@ products:
     model: AP300 WiFi
 entities:
   - entity: fan
-    icon: "mdi:air-purifier"
-    translation_only_key: fan_with_presets
+    translation_key: air_purifier
     dps:
       - id: 1
         type: boolean
@@ -19,7 +18,7 @@ entities:
         type: string
         mapping:
           - dps_val: AUTO
-            value: smart
+            value: auto
           - dps_val: SLEEP
             value: sleep
           - dps_val: MANUAL

+ 2 - 3
custom_components/tuya_local/devices/truelife_air_purrifier_p7.yaml

@@ -5,8 +5,7 @@ products:
     model: "Air Purifier P7 WIFI"
 entities:
   - entity: fan
-    icon: "mdi:air-purifier"
-    translation_only_key: fan_with_presets
+    translation_only_key: air_purifier
     dps:
       - id: 1
         type: boolean
@@ -16,7 +15,7 @@ entities:
         type: string
         mapping:
           - dps_val: AUTO
-            value: smart
+            value: auto
           - dps_val: SLEEP
             value: sleep
           - dps_val: MANUAL