Apply consistent style to node-red-nodes

(not updating npm for this yet - just whitespace)
This commit is contained in:
dceejay 2015-05-11 19:25:39 +01:00
parent 84f61a0466
commit f497b57b7d
18 changed files with 278 additions and 273 deletions

View File

@ -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) {