From 36afdddebcac4f23abf09f48e1838f8c5fa0c083 Mon Sep 17 00:00:00 2001 From: "huan.hu@tuya.com" Date: Tue, 22 Jun 2021 17:53:09 +0800 Subject: [PATCH] fix returns the number of devices --- lib/tuyashopenapi.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tuyashopenapi.js b/lib/tuyashopenapi.js index 6651bd3e..273d3a74 100644 --- a/lib/tuyashopenapi.js +++ b/lib/tuyashopenapi.js @@ -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++) {