Explorar o código

feat(smartplugv2_energyv2): make fault code optional for compatibility

Jason Rumney hai 1 semana
pai
achega
c0a344a14d

+ 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