Explorar o código

fix(petempo_paf02_pet_feeder): improve compatibility

No dps were marked optional, but many appear to not be reported.

Issue #5119
Jason Rumney hai 2 semanas
pai
achega
526f279911

+ 9 - 0
custom_components/tuya_local/devices/petempo_paf02_pet_feeder.yaml

@@ -3,6 +3,9 @@ products:
   - id: go142kwowvlxvmmn
   - id: go142kwowvlxvmmn
     manufacturer: Petempo
     manufacturer: Petempo
     model: PAF-02
     model: PAF-02
+  - id: qyilqivtx4uhd5r4
+    manufacturer: Frienhund
+    model: PAF-02
 entities:
 entities:
   - entity: button
   - entity: button
     name: Quick feed
     name: Quick feed
@@ -10,6 +13,7 @@ entities:
     dps:
     dps:
       - id: 2
       - id: 2
         type: boolean
         type: boolean
+        optional: true
         name: button
         name: button
   - entity: number
   - entity: number
     translation_key: manual_feed
     translation_key: manual_feed
@@ -17,6 +21,7 @@ entities:
     dps:
     dps:
       - id: 3
       - id: 3
         type: integer
         type: integer
+        optional: true
         name: value
         name: value
         unit: portions
         unit: portions
         range:
         range:
@@ -52,6 +57,7 @@ entities:
     dps:
     dps:
       - id: 11
       - id: 11
         type: boolean
         type: boolean
+        optional: true
         name: sensor
         name: sensor
   - entity: sensor
   - entity: sensor
     name: Feed report
     name: Feed report
@@ -60,6 +66,7 @@ entities:
     dps:
     dps:
       - id: 14
       - id: 14
         type: integer
         type: integer
+        optional: true
         name: sensor
         name: sensor
         unit: portions
         unit: portions
   - entity: light
   - entity: light
@@ -68,6 +75,7 @@ entities:
     dps:
     dps:
       - id: 17
       - id: 17
         type: boolean
         type: boolean
+        optional: true
         name: switch
         name: switch
   - entity: switch
   - entity: switch
     name: Slow feed
     name: Slow feed
@@ -84,4 +92,5 @@ entities:
     dps:
     dps:
       - id: 24
       - id: 24
         type: boolean
         type: boolean
+        optional: true
         name: button
         name: button