Răsfoiți Sursa

fix (cc_curtain): quote numeric strings in mapping

Unquoted, these are interpreted as numeric 1,2,3 instead of the string
"01", "02", "03" that is specified.
Jason Rumney 5 luni în urmă
părinte
comite
4502191f84
1 a modificat fișierele cu 3 adăugiri și 3 ștergeri
  1. 3 3
      custom_components/tuya_local/devices/cc_curtain.yaml

+ 3 - 3
custom_components/tuya_local/devices/cc_curtain.yaml

@@ -12,9 +12,9 @@ entities:
         name: control
         type: string
         mapping:
-          - dps_val: 01
+          - dps_val: "01"
             value: stop
-          - dps_val: 02
+          - dps_val: "02"
             value: open
-          - dps_val: 03
+          - dps_val: "03"
             value: close