Kaynağa Gözat

Summary: Elechiko CCST6001: remove extra mapping nesting

Mapping within mapping is invalid, should be constraint/conditions
directly inside the outer mapping.
Jason Rumney 11 ay önce
ebeveyn
işleme
58815f19a4

+ 9 - 10
custom_components/tuya_local/devices/elechico_ccst6001_thermostat.yaml

@@ -14,16 +14,15 @@ entities:
           - dps_val: false
             value: "off"
           - dps_val: true
-            mapping:
-              - constraint: mode
-                conditions:
-                  - dps_val: COOL
-                    value: cool
-                  - dps_val: HEAT
-                    value: heat
-                    available: heating_available
-                  - dps_val: FAN
-                    value: fan_only
+            constraint: mode
+            conditions:
+              - dps_val: COOL
+                value: cool
+              - dps_val: HEAT
+                value: heat
+                available: heating_available
+              - dps_val: FAN
+                value: fan_only
       - id: 2
         type: string
         name: mode