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

Add quotes to "off", as it is treated as false in yaml.

Jason Rumney 4 лет назад
Родитель
Сommit
6c95a3bd4f
1 измененных файлов с 4 добавлено и 4 удалено
  1. 4 4
      custom_components/tuya_local/devices/hellnar_heatpump.yaml

+ 4 - 4
custom_components/tuya_local/devices/hellnar_heatpump.yaml

@@ -7,18 +7,18 @@ primary_entity:
       type: boolean
       mapping:
         - dps_val: false
-          value: off
+          value: "off"
           icon: "mdi:hvac-off"
           icon_priority: 1
       hidden: true
     - id: 2
       name: current_temperature
       type: integer
+      mapping:
+        - scale: 10
     - id: 3
       name: temperature
       type: integer
-      mapping:
-        - scale: 10
       constraint: preset_mode
       conditions:
         - dps_val: cold
@@ -74,7 +74,7 @@ primary_entity:
           conditions:
             - dps_val: false
               value_redirect: power
-              value: off
+              value: "off"
             - dps_val: true
               value: fan_only
         - dps_val: wet