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

feat(smartplugv2_energyv2): make fault code optional for compatibility

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

+ 2 - 0
custom_components/tuya_local/devices/smartplugv2_energyv2.yaml

@@ -119,6 +119,7 @@ entities:
     dps:
       - id: 26
         type: bitfield
+        optional: true
         name: sensor
         mapping:
           - dps_val: 0
@@ -126,6 +127,7 @@ entities:
           - value: true
       - id: 26
         type: bitfield
+        optional: true
         name: fault_code
   - entity: select
     category: config