From c7429f831e4d80b995dbc6b06cb175583e6bba1a Mon Sep 17 00:00:00 2001 From: rtrimana Date: Sun, 4 Aug 2019 17:55:01 -0700 Subject: [PATCH] Using less Verify calls for Thermostats.groovy. --- Thermostat/Thermostats.groovy | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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, -- 2.34.1