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

ZN373186 temp/humidity: make battery sensor optional

Battery is apparently not reeported consistently with these sensors.

Issue #1636
Jason Rumney 2 лет назад
Родитель
Сommit
539a7da4f7
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      custom_components/tuya_local/devices/zigbee_zn373186_temphumid_sensor.yaml

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

@@ -31,5 +31,6 @@ secondary_entities:
       - id: 4
       - id: 4
         type: integer
         type: integer
         name: sensor
         name: sensor
+        optional: true
         unit: "%"
         unit: "%"
         class: measurement
         class: measurement