Преглед изворни кода

fix(gamp_bcv300_waterheater): fix conditional mapping

Jason Rumney пре 3 месеци
родитељ
комит
90fcbd21fb
1 измењених фајлова са 8 додато и 9 уклоњено
  1. 8 9
      custom_components/tuya_local/devices/gamp_bcv300_waterheater.yaml

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

@@ -9,15 +9,14 @@ entities:
           - dps_val: false
           - dps_val: false
             value: "off"
             value: "off"
           - dps_val: true
           - 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
       - id: 2
         type: integer
         type: integer
         name: temperature
         name: temperature