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

Stadlerform Roger: changes from review

- remove explicit name "Light"
- make child lock a lock

PR #2332
Jason Rumney 1 год назад
Родитель
Сommit
5b6a140c90
1 измененных файлов с 4 добавлено и 7 удалено
  1. 4 7
      custom_components/tuya_local/devices/stadlerform_roger_purifier.yaml

+ 4 - 7
custom_components/tuya_local/devices/stadlerform_roger_purifier.yaml

@@ -25,16 +25,13 @@ primary_entity:
         - dps_val: auto
         - dps_val: auto
           value: 100
           value: 100
 secondary_entities:
 secondary_entities:
-  - entity: switch
-    name: Child lock
-    class: switch
-    icon: "mdi:lock-outline"
+  - entity: lock
+    translation_key: child_lock
     dps:
     dps:
       - id: 7
       - id: 7
-        name: switch
+        name: lock
         type: boolean
         type: boolean
   - entity: light
   - entity: light
-    name: Light
     category: config
     category: config
     dps:
     dps:
       - id: 8
       - id: 8
@@ -50,7 +47,7 @@ secondary_entities:
         name: sensor
         name: sensor
         unit: "%"
         unit: "%"
   - entity: sensor
   - entity: sensor
-    name: Filter (Days)
+    name: Filter (days)
     category: diagnostic
     category: diagnostic
     class: duration
     class: duration
     dps:
     dps: