From 49f37047cc1dcc50b15d4d2a5a7768ab65ec5769 Mon Sep 17 00:00:00 2001 From: Koen Kanters Date: Mon, 16 Apr 2018 20:08:38 +0200 Subject: [PATCH] Return if device is not supported. --- index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/index.js b/index.js index e0fb7f340..e23e21e73 100644 --- a/index.js +++ b/index.js @@ -141,6 +141,7 @@ function handleMessage(msg) { if (!mappedModel) { logger.error(`Device with modelID '${modelID}' is not supported.`); logger.error('Please create an issue on https://github.com/Koenkk/xiaomi-zb2mqtt/issues to add support for your device'); + return; } // Find a parser for this modelID and cid.