소스 검색

Set optional DPs

johnnyaug 1 년 전
부모
커밋
ecf04930b8
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      custom_components/tuya_local/devices/raykube_a1promax_lock.yaml

+ 2 - 0
custom_components/tuya_local/devices/raykube_a1promax_lock.yaml

@@ -127,6 +127,7 @@ secondary_entities:
       - id: 33
         type: boolean
         name: switch
+        optional: true
   - entity: number
     name: Auto lock time
     category: config
@@ -139,6 +140,7 @@ secondary_entities:
         range:
           min: 1
           max: 1800
+        optional: true
   - entity: button
     name: Sync clock
     icon: "mdi:clock"