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

fix (klarstein_airflow_fanlight): use correct type for speed

Jason Rumney 2 месяцев назад
Родитель
Сommit
1162eed0c5

+ 4 - 8
custom_components/tuya_local/devices/klarstein_airfold_fanlight.yaml

@@ -23,15 +23,11 @@ entities:
           - dps_val: strong
             value: strong
       - id: 103
-        type: string
+        type: integer
         name: speed
-        mapping:
-          - dps_val: low
-            value: 33
-          - dps_val: middle
-            value: 67
-          - dps_val: high
-            value: 100
+        range:
+          min: 1
+          max: 6
       - id: 106
         type: string
         name: direction