Skip to content

Commit

Permalink
Minor code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
yracine committed Oct 22, 2015
1 parent eb6676d commit 2c4a9b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions smartapps/ScheduleTstatZones.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -1509,15 +1509,15 @@ private boolean is_temperature_too_hot_or_too_cold(ventSwitch) {
log.debug("is_temperature_in_vent_too_hot>checking current Temperature of ${ventSwitch}= ${tempSwitch}° vs. HVAC Max Temp of ${MAX_TEMP_VENT_SWITCH}°")
log.debug("is_temperature_in_vent_too_hot>checking current Temperature of ${ventSwitch}= ${tempSwitch}° vs. HVAC Min Temp of ${MIN_TEMP_VENT_SWITCH}°")
if (tempSwitch) {
if (((currentHVACMode=='heat') || (currentHVACMode == 'auto')) && (tempSwitch >= MAX_TEMP_VENT_SWITCH)) {
if (((currentHVACMode=='heat') || (currentHVACMode == 'auto')) && (tempSwitch >= MAX_TEMP_VENT_SWITCH)) {
// Turn the HVAC off, open all vents, and deactivate any further smartapp processing
thermostat.off()
open_all_vents()
powerSwitch?.off()
send("ScheduleTstatZones> ** IMMEDIATE ATTENTION: current HVAC mode is ${currentHVACMode}, and inside temperature of vent ${ventSwitch} too hot (${tempSwitch}°), opening all vents and turning off the HVAC to avoid any damage **")
return true
} /* if too hot */
if (((currentHVACMode=='cool') || (currentHVACMode == 'auto')) && (tempSwitch <= MIN_TEMP_VENT_SWITCH)) {
if (((currentHVACMode=='cool') || (currentHVACMode == 'auto')) && (tempSwitch <= MIN_TEMP_VENT_SWITCH)) {
// Turn the HVAC off, open all vents, and deactivate any further smartapp processing
thermostat.off()
open_all_vents()
Expand Down

0 comments on commit 2c4a9b1

Please sign in to comment.