Kaynağa Gözat

Duoqu litter box: naming changes

- remove commented out entities
- rename some entities

PR #3185
Jason Rumney 9 ay önce
ebeveyn
işleme
ea40438916

+ 3 - 59
custom_components/tuya_local/devices/duoqu_selfcleaning_litterbox.yaml

@@ -11,7 +11,7 @@ entities:
         type: boolean
         name: switch
   - entity: select
-    name: Working Mode
+    name: Mode
     icon: "mdi:broom"
     category: config
     dps:
@@ -67,14 +67,6 @@ entities:
       - id: 9
         type: boolean
         name: button
-#  - entity: button
-#    translation_key: factory_reset
-#    category: config
-#    dps:
-#      - id: 23
-#        type: boolean
-#        optional: true
-#        name: button
   - entity: sensor
     name: Visit count
     category: diagnostic
@@ -84,7 +76,7 @@ entities:
         name: sensor
         unit: times
   - entity: light
-    name: Backlight
+    translation_key: backlight
     dps:
       - id: 107
         type: integer
@@ -115,56 +107,8 @@ entities:
       - id: 103
         type: integer
         name: sensor
-#  - entity: event
-#    name: Notification
-#    dps:
-#      - id: 104
-#        type: integer
-#        name: event
-#        optional: true
-#        mapping:
-#          - dps_val: 0
-#            value: null
-#          - dps_val: null
-#            value: null
-#          - value: toilet
-#      - id: 104
-#        type: integer
-#        optional: true
-#        name: value
-#        mapping:
-#          - scale: 10
-#      - id: 108
-#        type: string
-#        name: log
-#  - entity: binary_sensor
-#    class: problem
-#    category: diagnostic
-#    dps:
-#      - id: 105
-#        type: string
-#        name: sensor
-#        mapping:
-#          - dps_val: "0"
-#            value: false
-#          - value: true
-#      - id: 105
-#        type: string
-#        name: fault_code
-#      - id: 105
-#        type: string
-#        name: description
-#        mapping:
-#          - dps_val: "0"
-#            value: ok
-#          - dps_val: "1"
-#            value: door
-#          - dps_val: "2"
-#            value: bin
-#          - dps_val: "3"
-#            value: pressure
   - entity: number
-    name: Flow Set
+    name: Flow
     category: config
     icon: "mdi:timer-pause"
     dps: