We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 821cc52 commit 960babeCopy full SHA for 960babe
index.js
@@ -410,7 +410,6 @@ class TuyaDevice extends EventEmitter {
410
411
// Queue this request and limit concurrent set requests to one
412
return this._setQueue.add(() => pTimeout(new Promise((resolve, reject) => {
413
-
414
if (options.shouldWaitForResponse && this._setResolver) {
415
throw new Error('A set command is already in progress. Can not issue a second one that also should return a response.');
416
}
@@ -581,7 +580,7 @@ class TuyaDevice extends EventEmitter {
581
580
// can emit a `data` event as soon as possible
582
if (this.globalOptions.issueGetOnConnect) {
583
this.get().catch(error => {
584
- debug('Error getting on connect: ' + error)
+ debug('Error getting on connect: ' + error);
585
this.emit('error', error);
586
});
587
0 commit comments