Improve robustness.

This commit is contained in:
Koen Kanters committed 2018-04-18 21:55:00 +02:00
1 parent 3b068daa12
commit 90cc4ad0e1
2 files changed
+2

No files matched your search

+1
View File
@@ -113,6 +113,7 @@ class Controller {
const deviceID = Object.keys(settings.get().devices).find((id) => settings.get().devices[id].friendly_name === friendlyName);
if (!deviceID) {
logger.error(`Cannot handle '${topic}' because deviceID of '${friendlyName}' cannot be found`);
return;
}
// Convert the MQTT message to a Zigbee message.