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

fix cecotec_fan_light speed to integer

Alejandro Soto Aguilera 1 год назад
Родитель
Сommit
b1c240ed4d
1 измененных файлов с 4 добавлено и 14 удалено
  1. 4 14
      custom_components/tuya_local/devices/cecotec_fan_light.yaml

+ 4 - 14
custom_components/tuya_local/devices/cecotec_fan_light.yaml

@@ -25,20 +25,10 @@ primary_entity:
           value: custom
     - id: 3
       name: speed
-      type: string
-      mapping:
-        - dps_val: "1"
-          value: 17
-        - dps_val: "2"
-          value: 33
-        - dps_val: "3"
-          value: 50
-        - dps_val: "4"
-          value: 67
-        - dps_val: "5"
-          value: 83
-        - dps_val: "6"
-          value: 100
+      type: integer
+      range:
+        min: 1
+        max: 6
     - id: 8
       name: direction
       type: string