Sfoglia il codice sorgente

Skyfan DC fan: make speed and preset optional

Issue #1959
Jason Rumney 1 anno fa
parent
commit
7c40b0e0f8

+ 2 - 0
custom_components/tuya_local/devices/skyfan_dc_fan.yaml

@@ -11,6 +11,7 @@ primary_entity:
     - id: 2
     - id: 2
       type: string
       type: string
       name: preset_mode
       name: preset_mode
+      optional: true
       mapping:
       mapping:
         - dps_val: smart
         - dps_val: smart
           value: smart
           value: smart
@@ -21,6 +22,7 @@ primary_entity:
     - id: 3
     - id: 3
       type: integer
       type: integer
       name: speed
       name: speed
+      optional: true
       range:
       range:
         min: 1
         min: 1
         max: 5
         max: 5