Merge pull request #371 from dzungpv/dev

Fix foundation error from #8433571
This commit is contained in:
Koen Kanters 2018-09-14 08:34:58 +02:00 committed by GitHub
commit fbbc1fad73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -192,7 +192,7 @@ class Zigbee {
logger.info(`Zigbee publish to '${deviceID}', ${cid} - ${cmd} - ${JSON.stringify(zclData)} - ${ep}`);
device[type](cid, cmd, zclData, (error) => {
device[type](cid, cmd, [zclData], (error) => {
if (error) {
logger.error(
`Zigbee publish to '${deviceID}', ${cid} - ${cmd} - ${JSON.stringify(zclData)} - ${ep} ` +