Просмотр исходного кода

Kirurami thermostat: fix mapping in operation_mode of water heater

Jason Rumney 1 год назад
Родитель
Сommit
0401cafbed
1 измененных файлов с 14 добавлено и 15 удалено
  1. 14 15
      custom_components/tuya_local/devices/kiturami_nctr100_thermostat.yaml

+ 14 - 15
custom_components/tuya_local/devices/kiturami_nctr100_thermostat.yaml

@@ -73,21 +73,20 @@ secondary_entities:
           - dps_val: false
           - dps_val: false
             value: "off"
             value: "off"
           - dps_val: true
           - dps_val: true
-            mapping:
-              - constraint: mode
-                conditions:
-                  - dps_val: Interior
-                    value: Radiator
-                  - dps_val: Reservation
-                    value: Scheduled
-                  - dps_val: OutGoing
-                    value: Underfloor heating
-                  - dps_val: Bath
-                    value: Hot water
-                  - dps_val: Summer
-                    value: Quick start
-                  - dps_val: OnDol
-                    value: away
+            constraint: mode
+            conditions:
+              - dps_val: Interior
+                value: Radiator
+              - dps_val: Reservation
+                value: Scheduled
+              - dps_val: OutGoing
+                value: Underfloor heating
+              - dps_val: Bath
+                value: Hot water
+              - dps_val: Summer
+                value: Quick start
+              - dps_val: OnDol
+                value: away
       - id: 2
       - id: 2
         type: string
         type: string
         name: mode
         name: mode