Преглед изворни кода

ZY-M100-W: make sensitivity configs optional

For some reason the two sensitivity adjustments are not always reported.

Issue #1913
Jason Rumney пре 1 година
родитељ
комит
7d49b8e2d3
1 измењених фајлова са 2 додато и 0 уклоњено
  1. 2 0
      custom_components/tuya_local/devices/zym100w_presence_sensor.yaml

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

@@ -40,6 +40,7 @@ secondary_entities:
       - id: 2
         type: integer
         name: value
+        optional: true
         range:
           min: 1
           max: 10
@@ -91,6 +92,7 @@ secondary_entities:
       - id: 102
         type: integer
         name: value
+        optional: true
         range:
           min: 1
           max: 10