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

ZY-M201 presence sensor: make sensitivity settings optional

Sometimes the device is not reporting these

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

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

@@ -41,6 +41,7 @@ secondary_entities:
       - id: 2
         type: integer
         name: value
+        optional: true
         range:
           min: 1
           max: 10
@@ -102,6 +103,7 @@ secondary_entities:
       - id: 111
         type: integer
         name: value
+        optional: true
         range:
           min: 1
           max: 10