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

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

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