소스 검색

GPPH: revert previous typo fix.

Fix causes tests to fail, probably better to leave it as it has been
for some years and remove the attempted redirect.  It seems that was
trying to take care of setting both dps together in both directions.
Jason Rumney 2 년 전
부모
커밋
f5687667f8
1개의 변경된 파일8개의 추가작업 그리고 9개의 파일을 삭제
  1. 8 9
      custom_components/tuya_local/devices/goldair_gpph_heater.yaml

+ 8 - 9
custom_components/tuya_local/devices/goldair_gpph_heater.yaml

@@ -65,7 +65,7 @@ primary_entity:
           constraint: swing_mode
           conditions:
             - dps_val: stop
-              value: "Stop"
+              value: Stop
         - dps_val: "1"
           value: "1"
         - dps_val: "2"
@@ -90,12 +90,11 @@ primary_entity:
           constraint: power_level
           conditions:
             - dps_val: stop
-              value: "Stop"
-          value_redirect: power_level
-          value: "Stop"
-        - dps_val: "auto"
-          value: "Auto"
-        - dps_val: "user"
+              value: Stop
+          value: Stop
+        - dps_val: auto
+          value: Auto
+        - dps_val: user
           constraint: power_level
           conditions:
             - dps_val: "1"
@@ -108,8 +107,8 @@ primary_entity:
               value: "4"
             - dps_val: "5"
               value: "5"
-            - dps_val: "stop"
-              value: "Stop"
+            - dps_val: stop
+              value: Stop
       name: swing_mode
     - id: 106
       type: integer