소스 검색

fix cecotec_fan_light speed to integer

Alejandro Soto Aguilera 1 년 전
부모
커밋
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