Skip to content

Commit

Permalink
ignore UNSUPPORTED_ATTRIBUTE from tuya dev
Browse files Browse the repository at this point in the history
  • Loading branch information
arteck committed Jan 3, 2024
1 parent a5fe3e3 commit 8b640f1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions lib/zbDeviceConfigure.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,13 @@ class DeviceConfigure extends BaseExtension {
this.info(`DeviceConfigure successful ${device.ieeeAddr} ${device.modelID}`);
}
} catch (error) {
this.sendError(error);
// this.error(`Failed to DeviceConfigure.configure ${device.ieeeAddr} ${device.modelID} (${error.stack})`);
// https://github.com/Koenkk/zigbee2mqtt/issues/14857
if (error.stack.includes('UNSUPPORTED_ATTRIBUTE')) {
// do nothing ignore it
} else {
this.sendError(error);
this.error(`Failed to DeviceConfigure.configure ${device.ieeeAddr} ${device.modelID} (${error.stack})`);
}
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@ class Zigbee extends utils.Adapter {

this.processConverters(converters, devId, model, mappedModel, message, meta)
.catch((error) => {
this.log.error(`Error while processing converters DEVICE_ID: '${devId}' `);
this.log.error(`Error while processing converters DEVICE_ID: '${devId}' cluster '${cluster}' type '${type}'`);
});
}

Expand Down

0 comments on commit 8b640f1

Please sign in to comment.