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)) {
// Ensure our valid keys contain valid values
switch (key) {
case "runmode" :
case "runmode" : {
if (DEBUG) {
hminnode.log("Hit the runmode case");
}
@ -158,8 +158,9 @@ module.exports = function(RED) {
return;
}
break;
}
//case "holiday" :
//case "holiday" : {
//if (DEBUG) {
//hminnode.log("Hit the holiday case");
//}
@ -183,8 +184,9 @@ module.exports = function(RED) {
//message.payload.away_mode = 0;
//}
//break;
// }
//case "hotwater" :
//case "hotwater" : {
//if (DEBUG) {
//hminnode.log("Hit the hotwater case");
//}
@ -193,8 +195,9 @@ module.exports = function(RED) {
//return;
//}
//break;
// }
case "heating" :
case "heating" : {
// Ensure heating stays last! It's got a multi write scenario
if (DEBUG) {
hminnode.log("Hit the heating case");
@ -226,10 +229,12 @@ module.exports = function(RED) {
return;
}
break;
}
default :
default : {
break;
}
}
// Valid set of key messages, construct DCB and write
var dcb = message.payload;
if (DEBUG) {