4
0
Эх сурвалжийг харах

fix (arcelik_ahphmm_comboheatpump): use valid conditions

When working around the need to let HA know the valid modes, use valid
condition syntax to avoid needing to change the validation rules in ways
that will let errors slip through.
Jason Rumney 2 сар өмнө
parent
commit
e1f70983a9

+ 6 - 3
custom_components/tuya_local/devices/arcelik_ahphmm_comboheatpump.yaml

@@ -153,12 +153,15 @@ entities:
         name: operation_mode
         name: operation_mode
         mapping:
         mapping:
           - dps_val: hot_water
           - dps_val: hot_water
-            value_redirect: power
             available: air_off
             available: air_off
             # dummy conditions to make the values known to HA
             # dummy conditions to make the values known to HA
             conditions:
             conditions:
-              - value: "off"
-              - value: heat_pump
+              - dps_val: hot_water
+                value_redirect: power
+                value: "off"
+              - dps_val: hot_water
+                value_redirect: power
+                value: heat_pump
           - dps_val: cool
           - dps_val: cool
             value: "off"
             value: "off"
             available: air_cool
             available: air_cool