소스 검색

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