Return if device is not supported.

This commit is contained in:
Koen Kanters
2018-04-16 20:08:38 +02:00
parent dd6d6cd407
commit 49f37047cc
+1
View File
@@ -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.