mirror of
https://github.com/node-red/node-red-nodes.git
synced 2025-03-01 10:37:43 +00:00
Fix some messages
This commit is contained in:
parent
f24a792b03
commit
d7df13bc2b
@ -413,9 +413,11 @@ module.exports = function(RED) {
|
|||||||
|
|
||||||
if (!dev) {
|
if (!dev) {
|
||||||
//need to show that dev not currently found
|
//need to show that dev not currently found
|
||||||
console.log('no device found');
|
console.log('Device not discovered yet');
|
||||||
if (done) {
|
if (done) {
|
||||||
done()
|
done("Device not discovered yet")
|
||||||
|
} else {
|
||||||
|
node.error("Device not discovered yet",msg)
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -471,7 +473,7 @@ module.exports = function(RED) {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
console.log("socket");
|
//console.log("socket");
|
||||||
// classic socket: no power measurement, so only request current switch status
|
// classic socket: no power measurement, so only request current switch status
|
||||||
wemo.getSocketStatus(dev)
|
wemo.getSocketStatus(dev)
|
||||||
.then(function(status) {
|
.then(function(status) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user