瀏覽代碼

Kogan bladeless fan: improve time remaining sensor

Add diagnostic category and duration class.
Jason Rumney 2 年之前
父節點
當前提交
b1290bee50
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      custom_components/tuya_local/devices/kogan_bladeless_fan.yaml

+ 3 - 1
custom_components/tuya_local/devices/kogan_bladeless_fan.yaml

@@ -118,10 +118,12 @@ secondary_entities:
             value: "8 hours"
   - entity: sensor
     name: Time Remaining
+    class: duration
     icon: "mdi:timer"
+    category: diagnostic
     dps:
       - id: 12
         type: string
         optional: true
         name: sensor
-        unit: mins
+        unit: min