Răsfoiți Sursa

V330L pet feeder: don't persist problem sensor

It seems the device just doesn't report the problem sensor when there are
no problems, it does not explicitly report 0.

Issue #2947
Jason Rumney 1 an în urmă
părinte
comite
40a1900508

+ 3 - 0
custom_components/tuya_local/devices/v330l_petfeeder.yaml

@@ -126,6 +126,7 @@ entities:
         type: bitfield
         name: sensor
         optional: true
+        persist: false
         mapping:
           - dps_val: 16777216
             value: true
@@ -143,6 +144,7 @@ entities:
         type: bitfield
         name: sensor
         optional: true
+        persist: false
         mapping:
           - dps_val: 33554432
             value: true
@@ -156,6 +158,7 @@ entities:
         type: bitfield
         name: sensor
         optional: true
+        persist: false
         mapping:
           - dps_val: 67108864
             value: true