From cb9beaa2ad760393beb77e875da252960c368e9b Mon Sep 17 00:00:00 2001 From: Koenkk Date: Wed, 28 Nov 2018 19:31:40 +0100 Subject: [PATCH] Fix getDeviceInfoForMqtt crash. https://github.com/Koenkk/zigbee2mqtt/issues/632 --- lib/controller.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/controller.js b/lib/controller.js index 5e2a29632..5b79cab0b 100644 --- a/lib/controller.js +++ b/lib/controller.js @@ -27,6 +27,7 @@ class Controller { this.onMQTTConnected = this.onMQTTConnected.bind(this); this.onZigbeeMessage = this.onZigbeeMessage.bind(this); this.onMQTTMessage = this.onMQTTMessage.bind(this); + this.publishDeviceState = this.publishDeviceState.bind(this); // Initialize extensions. this.extensions = [