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

AGL Ultracontato: follow naming conventions

Only first word should be capitalised, except trademarks, abbreviations

Some renaming for clarity
Jason Rumney 2 лет назад
Родитель
Сommit
ebddf57294
1 измененных файлов с 7 добавлено и 7 удалено
  1. 7 7
      custom_components/tuya_local/devices/agl_ultracontato.yaml

+ 7 - 7
custom_components/tuya_local/devices/agl_ultracontato.yaml

@@ -1,4 +1,4 @@
-name: AGL ultracontato r2
+name: AGL Ultracontato R2
 primary_entity:
 primary_entity:
   entity: cover
   entity: cover
   class: door
   class: door
@@ -25,9 +25,9 @@ secondary_entities:
         name: option
         name: option
         mapping:
         mapping:
           - dps_val: "NA"
           - dps_val: "NA"
-            value: Normally Open
+            value: Normally open
           - dps_val: "NF"
           - dps_val: "NF"
-            value: Normally Closed
+            value: Normally closed
   - entity: select
   - entity: select
     category: config
     category: config
     name: Pulse type
     name: Pulse type
@@ -42,7 +42,7 @@ secondary_entities:
           - dps_val: "Retencao"
           - dps_val: "Retencao"
             value: Continuous
             value: Continuous
           - dps_val: "ONOFF"
           - dps_val: "ONOFF"
-            value: ON - OFF
+            value: On - Off
   - entity: select
   - entity: select
     category: config
     category: config
     name: Auto close
     name: Auto close
@@ -58,7 +58,7 @@ secondary_entities:
             value: Disabled
             value: Disabled
   - entity: number
   - entity: number
     category: config
     category: config
-    name: Duration time
+    name: Unlock duration
     icon: "mdi:lock-clock"
     icon: "mdi:lock-clock"
     dps:
     dps:
       - id: 107
       - id: 107
@@ -69,14 +69,14 @@ secondary_entities:
           max: 65
           max: 65
         unit: s
         unit: s
   - entity: binary_sensor
   - entity: binary_sensor
-    name: Door Opened
+    name: Door opened
     category: diagnostic
     category: diagnostic
     dps:
     dps:
       - id: 111
       - id: 111
         type: boolean
         type: boolean
         name: sensor
         name: sensor
   - entity: binary_sensor
   - entity: binary_sensor
-    name: Door Closed
+    name: Door closed
     category: diagnostic
     category: diagnostic
     dps:
     dps:
       - id: 112
       - id: 112