From: rtrimana Date: Mon, 5 Aug 2019 00:55:01 +0000 (-0700) Subject: Using less Verify calls for Thermostats.groovy. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=c7429f831e4d80b995dbc6b06cb175583e6bba1a;p=smartthings-infrastructure.git Using less Verify calls for Thermostats.groovy. --- diff --git a/Thermostat/Thermostats.groovy b/Thermostat/Thermostats.groovy index b2abdcb..59d6bca 100644 --- a/Thermostat/Thermostats.groovy +++ b/Thermostat/Thermostats.groovy @@ -46,19 +46,19 @@ public class Thermostats{ this.deviceNumbers = deviceNumbers this.thermostats = [] - /*def initTemperature = Verify.getIntFromList(60, 66, 70) + def initTemperature = Verify.getIntFromList(60, 66) this.temperature = initTemperature this.currentTemperature = initTemperature - def initCoolingSetpoint = Verify.getIntFromList(70, 80, 90) + def initCoolingSetpoint = Verify.getIntFromList(70, 80) this.currentCoolingSetpoint = initCoolingSetpoint this.coolingSetpoint = initCoolingSetpoint - def initHeatingSetpoint = Verify.getIntFromList(20, 35, 50) + def initHeatingSetpoint = Verify.getIntFromList(35, 50) this.currentHeatingSetpoint = initHeatingSetpoint this.heatingSetpoint = initHeatingSetpoint - def initThermostatSetpoint = Verify.getIntFromList(50, 60, 70) + def initThermostatSetpoint = Verify.getIntFromList(50, 60) this.thermostatSetpoint = initThermostatSetpoint def initFanMode = Verify.getInt(0,4) @@ -100,7 +100,7 @@ public class Thermostats{ this.thermostatMode = "off" this.currentThermostatMode = "off" this.thermostatLatestMode = "off" - }*/ + } thermostats.add(new Thermostat(sendEvent, id, label, displayName, this.temperature, this.currentCoolingSetpoint, this.currentHeatingSetpoint, this.coolingSetpoint, this.thermostatSetpoint, this.heatingSetpoint, this.coolingSetpointRange,