Преглед изворни кода

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