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

Loycco sound nightlight: mark brightness as optional.

When light is off, the device does not report brightness.  Mark as
optional to improve detection chances.

issue #1042
Jason Rumney 2 лет назад
Родитель
Сommit
5cbf094c6c
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      custom_components/tuya_local/devices/loycco_sound_nightlight.yaml

+ 1 - 0
custom_components/tuya_local/devices/loycco_sound_nightlight.yaml

@@ -27,6 +27,7 @@ primary_entity:
     - id: 6
       name: brightness
       type: integer
+      optional: true
       range:
         min: 10
         max: 1000