Răsfoiți Sursa

Faroro pet feeder

Prefer class over explicit name and icon where possible
Jason Rumney 1 an în urmă
părinte
comite
076e3de42a
1 a modificat fișierele cu 3 adăugiri și 6 ștergeri
  1. 3 6
      custom_components/tuya_local/devices/faroro_pet_feeder.yaml

+ 3 - 6
custom_components/tuya_local/devices/faroro_pet_feeder.yaml

@@ -31,8 +31,7 @@ secondary_entities:
             value: Feeding
             value: Feeding
   - entity: button
   - entity: button
     name: Factory reset
     name: Factory reset
-    icon: "mdi:lock-reset"
-    category: diagnostic
+    class: restart
     dps:
     dps:
       - id: 9
       - id: 9
         type: boolean
         type: boolean
@@ -65,8 +64,6 @@ secondary_entities:
           - dps_val: false
           - dps_val: false
             icon: "mdi:lightbulb-outline"
             icon: "mdi:lightbulb-outline"
   - entity: sensor
   - entity: sensor
-    name: Battery level
-    icon: "mdi:battery"
     category: diagnostic
     category: diagnostic
     class: battery
     class: battery
     dps:
     dps:
@@ -98,7 +95,7 @@ secondary_entities:
             value: Empty
             value: Empty
             icon: "mdi:food-drumstick-off-outline"
             icon: "mdi:food-drumstick-off-outline"
   - entity: binary_sensor
   - entity: binary_sensor
-    name: Food jam status
+    name: Food jam
     icon: "mdi:paw"
     icon: "mdi:paw"
     class: problem
     class: problem
     category: diagnostic
     category: diagnostic
@@ -107,7 +104,7 @@ secondary_entities:
         name: sensor
         name: sensor
         type: boolean
         type: boolean
   - entity: binary_sensor
   - entity: binary_sensor
-    name: Stuck status
+    name: Stuck
     icon: "mdi:paw"
     icon: "mdi:paw"
     class: problem
     class: problem
     category: diagnostic
     category: diagnostic