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

TYTE D1: make energy reading optional

- remove forced updates from other sensors as there is no indication
  they are needed for this device, and may be causing harm.

Issue #1044
Jason Rumney 2 лет назад
Родитель
Сommit
46befd4100
1 измененных файлов с 2 добавлено и 3 удалено
  1. 2 3
      custom_components/tuya_local/devices/tyte_d1_thermostat.yaml

+ 2 - 3
custom_components/tuya_local/devices/tyte_d1_thermostat.yaml

@@ -118,9 +118,11 @@ secondary_entities:
         type: integer
         name: sensor
         unit: Wh
+        optional: true
       - id: 17
         type: integer
         name: coefficient
+        optional: true
   - entity: sensor
     class: current
     category: diagnostic
@@ -128,7 +130,6 @@ secondary_entities:
       - id: 11
         type: integer
         name: sensor
-        force: true
         unit: mA
         class: measurement
       - id: 15
@@ -143,7 +144,6 @@ secondary_entities:
         name: sensor
         unit: W
         class: measurement
-        force: true
         mapping:
           - scale: 10
       - id: 16
@@ -160,7 +160,6 @@ secondary_entities:
         type: integer
         name: sensor
         unit: V
-        force: true
         class: measurement
         mapping:
           - scale: 10