فهرست منبع

SmartMi E1: move `class: duration` to correct location

Was placed as a state class, instead of the intended device class.
Jason Rumney 1 سال پیش
والد
کامیت
bca11a0bdc
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      custom_components/tuya_local/devices/smartmi_e1_purifier.yaml

+ 1 - 1
custom_components/tuya_local/devices/smartmi_e1_purifier.yaml

@@ -34,10 +34,10 @@ secondary_entities:
   - entity: sensor
     name: Filter usage
     category: diagnostic
+    class: duration
     icon: "mdi:shield-bug"
     dps:
       - id: 101
         name: sensor
         type: integer
         unit: h
-        class: duration