Fix crash when transition is used. #712

This commit is contained in:
Koen Kanters 2018-12-17 21:27:13 +01:00
parent 8a133de1d1
commit 1b8154bac1

View File

@ -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) => {