Преглед на файлове

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