Skip to content

Commit

Permalink
Fix crash when transition is used. Koenkk#712
Browse files Browse the repository at this point in the history
  • Loading branch information
Koenkk committed Dec 17, 2018
1 parent 8a133de commit 1b8154b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/extension/devicePublish.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ class DevicePublish {
// Therefore; at the end of the transition, read the new state from the device.
if (topic.type === 'set' && converted.zclData.transtime) {
const time = converted.zclData.transtime * 100;
const getConverted = converter.convert(json[key], json, 'get');
const getConverted = converter.convert(key, json[key], json, 'get');
setTimeout(() => {
// Add job to queue
this.queue.push((queueCallback) => {
Expand Down

0 comments on commit 1b8154b

Please sign in to comment.