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

Arlec PB88uha: follow HA naming conventions.

- use lower case for second and subsequent words in entity names
- remove unnecessary quotes
- add necessary quotes to yaml keywords
Jason Rumney 3 лет назад
Родитель
Сommit
13dfb6aff2
1 измененных файлов с 13 добавлено и 13 удалено
  1. 13 13
      custom_components/tuya_local/devices/arlec_pb88uha_s2_switch.yaml

+ 13 - 13
custom_components/tuya_local/devices/arlec_pb88uha_s2_switch.yaml

@@ -1,7 +1,7 @@
 name: Arlec PB88UHA Series 2 Powerboard
 primary_entity:
   entity: switch
-  name: "Outlet 1"
+  name: Outlet 1
   class: outlet
   dps:
     - id: 1
@@ -9,21 +9,21 @@ primary_entity:
       name: switch
 secondary_entities:
   - entity: switch
-    name: "Outlet 2"
+    name: Outlet 2
     class: outlet
     dps:
       - id: 2
         type: boolean
         name: switch
   - entity: switch
-    name: "Outlet 3"
+    name: Outlet 3
     class: outlet
     dps:
       - id: 3
         type: boolean
         name: switch
   - entity: switch
-    name: "Outlet 4"
+    name: Outlet 4
     class: outlet
     dps:
       - id: 4
@@ -31,7 +31,7 @@ secondary_entities:
         name: switch
   - entity: number
     category: config
-    name: "Timer Switch 1"
+    name: Timer switch 1
     icon: "mdi:timer"
     dps:
       - id: 9
@@ -46,7 +46,7 @@ secondary_entities:
             step: 60
   - entity: number
     category: config
-    name: "Timer Switch 2"
+    name: Timer switch 2
     icon: "mdi:timer"
     dps:
       - id: 10
@@ -61,7 +61,7 @@ secondary_entities:
             step: 60
   - entity: number
     category: config
-    name: "Timer Switch 3"
+    name: Timer switch 3
     icon: "mdi:timer"
     dps:
       - id: 11
@@ -76,7 +76,7 @@ secondary_entities:
             step: 60
   - entity: number
     category: config
-    name: "Timer Switch 4"
+    name: Timer switch 4
     icon: "mdi:timer"
     dps:
       - id: 12
@@ -91,21 +91,21 @@ secondary_entities:
             step: 60
   - entity: select
     category: config
-    name: "Restore Power State"
+    name: Restore power state
     dps:
       - id: 38
         name: option
         type: string
         mapping:
           - dps_val: memory
-            value: "Remember Last Status"
-          - dps_val: on
+            value: Remember Last Status
+          - dps_val: "on"
             value: "On"
-          - dps_val: off
+          - dps_val: "off"
             value: "Off"
   - entity: lock
     category: config
-    name: "Child Lock"
+    name: Child lock
     dps:
       - id: 41
         name: lock