Skip to content

Commit

Permalink
Increasing sleep time when new device added. (updateDevice API unstab…
Browse files Browse the repository at this point in the history
…le).
  • Loading branch information
0x5e committed Nov 19, 2022
1 parent 1a17089 commit 5a1d6a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/device/TuyaDeviceManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ export default class TuyaDeviceManager extends EventEmitter {
}

// TODO failed if request to quickly
await new Promise(resolve => setTimeout(resolve, 3000));
await new Promise(resolve => setTimeout(resolve, 10000));

const device = await this.updateDevice(devId);
if (!device) {
Expand Down

0 comments on commit 5a1d6a7

Please sign in to comment.