From 469a01ebb665ade9da37edd9e785716d1ba1135c Mon Sep 17 00:00:00 2001 From: Viet Dzung Date: Fri, 14 Sep 2018 10:01:07 +0700 Subject: [PATCH] Fix foundation error from #8433571 --- lib/zigbee.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/zigbee.js b/lib/zigbee.js index bfe50d4b..3ba4c1a6 100644 --- a/lib/zigbee.js +++ b/lib/zigbee.js @@ -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} ` +