Skip to content

Commit

Permalink
fix returns the number of devices
Browse files Browse the repository at this point in the history
  • Loading branch information
Hanh94 committed Jun 22, 2021
1 parent fd1364f commit 36afddd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tuyashopenapi.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class TuyaSHOpenAPI {

//Gets the list of devices under the associated user
async getDevices() {
let res = await this.get(`/v1.0/iot-01/associated-users/devices`);
let res = await this.get(`/v1.0/iot-01/associated-users/devices`, { 'size': 100 });

let deviceIds = [];
for (let i = 0; i < res.result.devices.length; i++) {
Expand Down

0 comments on commit 36afddd

Please sign in to comment.