소스 검색

Nooie NSP21: naming changes

- use translations where available
- use generic top level name with branding under products.
Jason Rumney 2 년 전
부모
커밋
48d5db35a4
1개의 변경된 파일5개의 추가작업 그리고 5개의 파일을 삭제
  1. 5 5
      custom_components/tuya_local/devices/nooie_nsp21_smartplug.yaml

+ 5 - 5
custom_components/tuya_local/devices/nooie_nsp21_smartplug.yaml

@@ -1,7 +1,7 @@
-name: Nooie NSP21 SmartPlug
+name: SmartPlug
 products:
   - id: e8dqdqxjgmilloml
-    name: NSP21
+    name: Nooie NSP21
 primary_entity:
   entity: switch
   class: outlet
@@ -11,13 +11,13 @@ primary_entity:
       type: boolean
 secondary_entities:
   - entity: number
-    name: Countdown
+    translation_key: timer
     category: config
     dps:
       - id: 9
         type: integer
         name: value
-        unit: mins
+        unit: min
         range:
           min: 0
           max: 86400
@@ -40,7 +40,7 @@ secondary_entities:
           - dps_val: "none"
             value: "Off"
   - entity: lock
-    name: "Child Lock"
+    translation_key: child_lock
     category: config
     dps:
       - id: 41