Просмотр исходного кода

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

Was placed as a state class, instead of the intended device class.
Jason Rumney 1 год назад
Родитель
Сommit
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