Dont handle messages without cid.

This commit is contained in:
Koen Kanters 2018-04-19 23:15:09 +02:00
parent 21575673b3
commit f9860f5b9d

View File

@ -52,8 +52,8 @@ class Controller {
settings.write();
}
// We can't handle devices without modelId.
if (!device.modelId) {
// We can't handle devices without modelId or cid.
if (!device.modelId || !message.data.cid) {
return;
}