Browse Source

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 năm trước cách đây
mục cha
commit
a820e0bcbd

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

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