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

SmartplugV2 EnergyV3: forced dps should be optional

If they are returned all the time, they do not need to be forced.
- also make test_bit optional, as it does not make sense to require this.
Jason Rumney 1 год назад
Родитель
Сommit
0a5486bda1
1 измененных файлов с 4 добавлено и 0 удалено
  1. 4 0
      custom_components/tuya_local/devices/smartplugv2_energyv3.yaml

+ 4 - 0
custom_components/tuya_local/devices/smartplugv2_energyv3.yaml

@@ -22,6 +22,7 @@ entities:
         name: switch
       - id: 21
         type: integer
+        optional: true
         name: test_bit
       - id: 42
         type: base64
@@ -72,6 +73,7 @@ entities:
         name: sensor
         type: integer
         class: measurement
+        optional: true
         force: true
         unit: mA
       - id: 23
@@ -85,6 +87,7 @@ entities:
         name: sensor
         type: integer
         class: measurement
+        optional: true
         force: true
         unit: W
         mapping:
@@ -107,6 +110,7 @@ entities:
         name: sensor
         type: integer
         class: measurement
+        optional: true
         force: true
         unit: V
         mapping: