Преглед изворни кода

Avatto curtain+light: rearrange optional dps

Latest log shows light present but calibration missing.
This is more reasonable, as it would allow to distinguish from other
curtain-only devices still.  Since the device is obviously not
reliable in which dps it decides to leave out, users are probably
going to have to retry a few times to get it recognised.

Issue #987
Jason Rumney пре 2 година
родитељ
комит
191c0a8f23
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      custom_components/tuya_local/devices/avatto_curtain_light.yaml

+ 1 - 1
custom_components/tuya_local/devices/avatto_curtain_light.yaml

@@ -31,7 +31,6 @@ secondary_entities:
       - id: 102
         type: boolean
         name: switch
-        optional: true
   - entity: select
     name: Calibration
     icon: "mdi:curtains"
@@ -40,6 +39,7 @@ secondary_entities:
       - id: 3
         type: string
         name: option
+        optional: true
         mapping:
           - dps_val: start
             value: Start