Skip to content

Commit 1bf8450

Browse files
committed
Fix toString() in .set()
1 parent 290d6e9 commit 1bf8450

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ TuyaDevice.prototype.set = function (options) {
230230
if (options.dps === undefined) {
231231
thisRequest.dps = {1: options.set};
232232
} else {
233-
thisRequest.dps[options.dps.toString] = options.set;
233+
thisRequest.dps[options.dps.toString()] = options.set;
234234
}
235235

236236
debug('Payload: ');

0 commit comments

Comments
 (0)