From a0e2048ed2057168ebea91c0367721e81cdfe75c Mon Sep 17 00:00:00 2001 From: Ingo Fischer Date: Tue, 8 Nov 2022 16:56:36 +0100 Subject: [PATCH] try 3.2 fix --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index be0410a..d71801a 100644 --- a/index.js +++ b/index.js @@ -163,7 +163,7 @@ class TuyaDevice extends EventEmitter { return new Promise((resolve, reject) => { // Send request this._send(buffer).then(async data => { - if (data === 'json obj data unvalid' /* || data === 'data format error' || data === 'devid not found' */) { + if (data === 'json obj data unvalid' || data === 'data format error' /* || data === 'devid not found' */) { // Some devices don't respond to DP_QUERY so, for DPS get commands, fall // back to using SEND with null value. This appears to always work as // long as the DPS key exist on the device.