tuya / tuya-connector-nodejs

nodejs sdk
38 stars 17 forks source link

Incorrect return type for device status endpoint #14

Open jbellionjourdanSeb opened 1 year ago

jbellionjourdanSeb commented 1 year ago

Hi,

According to this doc : https://developer.tuya.com/en/docs/cloud/f76865b055?id=Kag2ycn1lvwpt

The endpoint GET: /v1.0/iot-03/devices/{device_id}/status returns an array. However, it seems that the TuyaContext.deviceStatus.status(...) method returns a single item.