Răsfoiți Sursa

fix(gamp_bcv300_waterheater): fix conditional mapping

Jason Rumney 1 săptămână în urmă
părinte
comite
90fcbd21fb

+ 8 - 9
custom_components/tuya_local/devices/gamp_bcv300_waterheater.yaml

@@ -9,15 +9,14 @@ entities:
           - dps_val: false
             value: "off"
           - dps_val: true
-            mapping:
-              - constraint: electric
-                conditions:
-                  - dps_val: true
-                    value: electric
-                  - dps_val: false
-                    value: heat_pump
-                  - dps_val: null
-                    value: heat_pump
+            constraint: electric
+            conditions:
+              - dps_val: true
+                value: electric
+              - dps_val: false
+                value: heat_pump
+              - dps_val: null
+                value: heat_pump
       - id: 2
         type: integer
         name: temperature