瀏覽代碼

fix (novadigital_quad_switch): add quotes around numeric strings

Jason Rumney 3 月之前
父節點
當前提交
5f33a87837
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      custom_components/tuya_local/devices/novadigital_quad_switch.yaml

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

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