Explorar o código

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

Jason Rumney %!s(int64=4) %!d(string=hai) anos
pai
achega
6c95a3bd4f
Modificáronse 1 ficheiros con 4 adicións e 4 borrados
  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