Don't log 'Connecting with device' when device is already known.

This commit is contained in:
Koenkk
2018-06-25 20:18:39 +02:00
parent 094c288c3c
commit f03ade2775
+4 -3
View File
@@ -209,11 +209,12 @@ class Controller {
this.softResetTimeout(true);
logger.debug('Recieved zigbee message with data', JSON.stringify(message.data));
if (message.type == 'devInterview') {
if (message.type == 'devInterview' && !settings.getDevice(message.data)) {
logger.info('Connecting with device...');
this.mqtt.log('pairing', 'connecting with device');
} else if (message.type == 'devIncoming') {
}
if (message.type == 'devIncoming') {
logger.info('Device incoming...');
this.mqtt.log('pairing', 'device incoming');
}