diff --git a/smartapps/curb/curb-control.src/curb-control.groovy b/smartapps/curb/curb-control.src/curb-control.groovy index 4cea160..3bd1ec4 100644 --- a/smartapps/curb/curb-control.src/curb-control.groovy +++ b/smartapps/curb/curb-control.src/curb-control.groovy @@ -68,10 +68,10 @@ private void updateAll(devices) { switch(command) { case "on": devices.on() - break; + break case "off": devices.off() - break; + break default: httpError(403, "Access denied. This command is not supported by current capability.") } @@ -89,10 +89,10 @@ private void update(devices) { switch(command) { case "on": device.on() - break; + break case "off": device.off() - break; + break default: httpError(403, "Access denied. This command is not supported by current capability.") }