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

Addressing issues identified during code review

Christian Silva 3 лет назад
Родитель
Сommit
b6d407acfe
1 измененных файлов с 4 добавлено и 22 удалено
  1. 4 22
      custom_components/tuya_local/devices/kabum_smart_500

+ 4 - 22
custom_components/tuya_local/devices/kabum_smart_500

@@ -56,13 +56,13 @@ primary_entity:
         - dps_val: smart
         - dps_val: smart
           value: Auto cleaning
           value: Auto cleaning
         - dps_val: spiral
         - dps_val: spiral
-          value: Stop_cleanning
+          value: clean_spot
         - dps_value: single
         - dps_value: single
           value: Room cleaning
           value: Room cleaning
         - dps_val: wall_follow
         - dps_val: wall_follow
           value: Edge cleaning
           value: Edge cleaning
         - dps_val: chargego
         - dps_val: chargego
-          value: Return to base
+          value: return_to_base
     - id: 28
     - id: 28
       type: string
       type: string
       name: status
       name: status
@@ -99,30 +99,11 @@ secondary_entities:
       - id: 31
       - id: 31
         type: boolean
         type: boolean
         name: switch
         name: switch
-  - entity: select
-    name: Mode
-    icon: mdi:vacuum-outline
-    dps:
-      - id: 27
-        type: string
-        name: option
-        mapping:
-          - dps_val: standby
-            value: Standby
-          - dps_val: smart
-            value: Auto cleaning
-          - dps_val: spiral
-            value: Spot cleanning
-          - dps_value: single
-            value: Room cleaning
-          - dps_val: wall_follow
-            value: Edge cleaning
-          - dps_val: chargego
-            value: Return to base
   - entity: sensor
   - entity: sensor
     name: Clean area
     name: Clean area
     category: diagnostic
     category: diagnostic
     icon: "mdi:floor-plan"
     icon: "mdi:floor-plan"
+    optional: true
     dps:
     dps:
       - id: 32
       - id: 32
         type: integer
         type: integer
@@ -132,6 +113,7 @@ secondary_entities:
     name: Clean time
     name: Clean time
     category: diagnostic
     category: diagnostic
     icon: "mdi:clock-outline"
     icon: "mdi:clock-outline"
+    optional: true
     dps:
     dps:
       - id: 33
       - id: 33
         type: integer
         type: integer