소스 검색

loratap curtain: use the modern mapping when value is null

The cover is being set up before values are fetched, so we cannot determine the actual
mappings yet.  Returning an empty list of values is not working, so in this case return
the most common one.  Later when we have values the correct mapping will become available.

Issue #704
Jason Rumney 3 년 전
부모
커밋
4de3b0d073
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      custom_components/tuya_local/devices/loratap_curtain_switch.yaml

+ 1 - 1
custom_components/tuya_local/devices/loratap_curtain_switch.yaml

@@ -21,7 +21,7 @@ primary_entity:
                   value: close
                 - dps_val: "3"
                   value: stop
-            - dps_val: [ "open", "close", "stop", "continue" ]
+            - dps_val: [ "open", "close", "stop", "continue", null ]
               mapping:
                 - dps_val: open
                   value: open