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

Use translation key in place of name/class

Nikolas Andreou 11 месяцев назад
Родитель
Сommit
241ec197ea

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

@@ -67,9 +67,7 @@ entities:
         name: fault_code
   - entity: binary_sensor
     name: Water tank
-    class: problem
-    category: diagnostic
-    icon: "mdi:water"
+    translation_key: tank_full
     dps:
       - id: 19
         type: bitfield