Ver código fonte

fix (novadigital_quad_switch): add quotes around numeric strings

Jason Rumney 1 mês atrás
pai
commit
5f33a87837

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

@@ -94,11 +94,11 @@ entities:
         name: option
         name: option
         type: string
         type: string
         mapping:
         mapping:
-          - dps_val: 0
+          - dps_val: "0"
             value: "off"
             value: "off"
-          - dps_val: 1
+          - dps_val: "1"
             value: "on"
             value: "on"
-          - dps_val: 2
+          - dps_val: "2"
             value: memory
             value: memory
         optional: true
         optional: true
         force: true
         force: true