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

ZY-M201 presence sensor: make sensitivity settings optional

Sometimes the device is not reporting these

Issue #1515
Jason Rumney 2 лет назад
Родитель
Сommit
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