Skip to content

Commit

Permalink
Fix dpEntry[2].from is not a function error for TuYa TS0601_dimmer_1.
Browse files Browse the repository at this point in the history
  • Loading branch information
Koenkk authored and Mephistofeles committed Dec 13, 2022
1 parent 9dd81c6 commit acda531
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tuya.js
Original file line number Diff line number Diff line change
Expand Up @@ -1236,7 +1236,7 @@ const valueConverter = {
onOff: valueConverterBasic.lookup({'ON': true, 'OFF': false}),
powerOnBehavior: valueConverterBasic.lookup({'off': 0, 'on': 1, 'previous': 2}),
lightType: valueConverterBasic.lookup({'led': 0, 'incandescent': 1, 'halogen': 2}),
countdown: valueConverterBasic.raw,
countdown: valueConverterBasic.raw(),
scale0_254to0_1000: valueConverterBasic.scale(0, 254, 0, 1000),
scale0_1to0_1000: valueConverterBasic.scale(0, 1, 0, 1000),
divideBy100: valueConverterBasic.divideBy(100),
Expand Down

0 comments on commit acda531

Please sign in to comment.