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)) {
|
||||
// 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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user