Skip to content

Commit

Permalink
try 3.2 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Apollon77 committed Nov 8, 2022
1 parent 0188804 commit a0e2048
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit a0e2048

Please sign in to comment.