Selaa lähdekoodia

feat!(gardenpac_heatpump): add pool_heatpump translation key

- Use translation key instead of overridden icons
- Breaking change: use `smart` and `quiet` presets from pool_heatpump
  translations instead of forcing them into the standard HA presets
  `activity` and `sleep`. This brings it closer to the Tuya `Smart` and
  `Silent` wording.

PR #4982 by nicolas-albert
Jason Rumney 2 kuukautta sitten
vanhempi
commit
48ef4fbc52

+ 4 - 7
custom_components/tuya_local/devices/gardenpac_heatpump.yaml

@@ -5,6 +5,7 @@ products:
     model: InverTech GHD-150-0356
     model: InverTech GHD-150-0356
 entities:
 entities:
   - entity: climate
   - entity: climate
+    translation_only_key: pool_heatpump
     dps:
     dps:
       - id: 1
       - id: 1
         name: hvac_mode
         name: hvac_mode
@@ -12,12 +13,8 @@ entities:
         mapping:
         mapping:
           - dps_val: false
           - dps_val: false
             value: "off"
             value: "off"
-            icon: "mdi:hvac-off"
-            icon_priority: 1
           - dps_val: true
           - dps_val: true
-            value: "heat"
-            icon: "mdi:hot-tub"
-            icon_priority: 3
+            value: heat
       - id: 102
       - id: 102
         name: current_temperature
         name: current_temperature
         type: integer
         type: integer
@@ -56,9 +53,9 @@ entities:
         type: boolean
         type: boolean
         mapping:
         mapping:
           - dps_val: false
           - dps_val: false
-            value: sleep
+            value: quiet
           - dps_val: true
           - dps_val: true
-            value: activity
+            value: smart
   - entity: sensor
   - entity: sensor
     name: Power level
     name: Power level
     icon: "mdi:signal"
     icon: "mdi:signal"