Ver Fonte

Quote numeric string values

Brett T. Warden há 1 ano atrás
pai
commit
ee1eff9ec4

+ 4 - 4
custom_components/tuya_local/devices/omnibreeze_tower_fan.yaml

@@ -13,13 +13,13 @@ primary_entity:
       type: string
       type: string
       name: preset_mode
       name: preset_mode
       mapping:
       mapping:
-        - dps_val: 0
+        - dps_val: '0'
           value: normal
           value: normal
-        - dps_val: 1
+        - dps_val: '1'
           value: nature
           value: nature
-        - dps_val: 2
+        - dps_val: '2'
           value: sleep
           value: sleep
-        - dps_val: 3
+        - dps_val: '3'
           value: smart
           value: smart
     - id: 3
     - id: 3
       type: integer
       type: integer