Просмотр исходного кода

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 лет назад
Родитель
Сommit
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