소스 검색

Atorch S1WP: make display switch button and main switch optional

User report shows these two as missing in the log output.

Issue #1103
Jason Rumney 2 년 전
부모
커밋
a820e0bcbd
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      custom_components/tuya_local/devices/atorch_s1wp.yaml

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

@@ -9,6 +9,7 @@ primary_entity:
     - id: 1
       type: boolean
       name: switch
+      optional: true
 secondary_entities:
   - entity: number
     category: config
@@ -220,6 +221,7 @@ secondary_entities:
       - id: 116
         type: boolean
         name: button
+        optional: true
   - entity: select
     category: config
     name: Standby screen