Fix some messages

This commit is contained in:
Ben Hardill 2021-04-08 11:49:59 +01:00
parent f24a792b03
commit d7df13bc2b
No known key found for this signature in database
GPG Key ID: 74DD076979ABB1E7

View File

@ -413,9 +413,11 @@ module.exports = function(RED) {
if (!dev) {
//need to show that dev not currently found
console.log('no device found');
console.log('Device not discovered yet');
if (done) {
done()
done("Device not discovered yet")
} else {
node.error("Device not discovered yet",msg)
}
return;
}
@ -471,7 +473,7 @@ module.exports = function(RED) {
}
});
} else {
console.log("socket");
//console.log("socket");
// classic socket: no power measurement, so only request current switch status
wemo.getSocketStatus(dev)
.then(function(status) {