mirror of
https://github.com/node-red/node-red-nodes.git
synced 2025-03-01 10:37:43 +00:00
Apply consistent style to node-red-nodes
(not updating npm for this yet - just whitespace)
This commit is contained in:
parent
84f61a0466
commit
f497b57b7d
@ -149,7 +149,7 @@ module.exports = function(RED) {
|
|||||||
if (message.payload.hasOwnProperty(key)) {
|
if (message.payload.hasOwnProperty(key)) {
|
||||||
// Ensure our valid keys contain valid values
|
// Ensure our valid keys contain valid values
|
||||||
switch (key) {
|
switch (key) {
|
||||||
case "runmode" :
|
case "runmode" : {
|
||||||
if (DEBUG) {
|
if (DEBUG) {
|
||||||
hminnode.log("Hit the runmode case");
|
hminnode.log("Hit the runmode case");
|
||||||
}
|
}
|
||||||
@ -158,8 +158,9 @@ module.exports = function(RED) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
//case "holiday" :
|
//case "holiday" : {
|
||||||
//if (DEBUG) {
|
//if (DEBUG) {
|
||||||
//hminnode.log("Hit the holiday case");
|
//hminnode.log("Hit the holiday case");
|
||||||
//}
|
//}
|
||||||
@ -183,8 +184,9 @@ module.exports = function(RED) {
|
|||||||
//message.payload.away_mode = 0;
|
//message.payload.away_mode = 0;
|
||||||
//}
|
//}
|
||||||
//break;
|
//break;
|
||||||
|
// }
|
||||||
|
|
||||||
//case "hotwater" :
|
//case "hotwater" : {
|
||||||
//if (DEBUG) {
|
//if (DEBUG) {
|
||||||
//hminnode.log("Hit the hotwater case");
|
//hminnode.log("Hit the hotwater case");
|
||||||
//}
|
//}
|
||||||
@ -193,8 +195,9 @@ module.exports = function(RED) {
|
|||||||
//return;
|
//return;
|
||||||
//}
|
//}
|
||||||
//break;
|
//break;
|
||||||
|
// }
|
||||||
|
|
||||||
case "heating" :
|
case "heating" : {
|
||||||
// Ensure heating stays last! It's got a multi write scenario
|
// Ensure heating stays last! It's got a multi write scenario
|
||||||
if (DEBUG) {
|
if (DEBUG) {
|
||||||
hminnode.log("Hit the heating case");
|
hminnode.log("Hit the heating case");
|
||||||
@ -226,10 +229,12 @@ module.exports = function(RED) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
default :
|
default : {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
// Valid set of key messages, construct DCB and write
|
// Valid set of key messages, construct DCB and write
|
||||||
var dcb = message.payload;
|
var dcb = message.payload;
|
||||||
if (DEBUG) {
|
if (DEBUG) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user