Explorar el Código

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 hace 2 años
padre
commit
a820e0bcbd
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  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
     - 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