소스 검색

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

Jason Rumney 4 년 전
부모
커밋
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