Преглед изворни кода

feat(smartplugv2_energyv2): make fault code optional for compatibility

Jason Rumney пре 1 месец
родитељ
комит
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:
     dps:
       - id: 26
       - id: 26
         type: bitfield
         type: bitfield
+        optional: true
         name: sensor
         name: sensor
         mapping:
         mapping:
           - dps_val: 0
           - dps_val: 0
@@ -126,6 +127,7 @@ entities:
           - value: true
           - value: true
       - id: 26
       - id: 26
         type: bitfield
         type: bitfield
+        optional: true
         name: fault_code
         name: fault_code
   - entity: select
   - entity: select
     category: config
     category: config