Fixing a previous bug!
[smartthings-infrastructure.git] / Thermostat / Thermostats.groovy
index e2defec220cc3318f3c983c1121a6e3ebb0739fe..620aca10a296f54d5e91c1c1d75654fa763c4db7 100644 (file)
@@ -141,7 +141,7 @@ public class Thermostats{
                if (thermostatMode != this.thermostatMode) {
                        this.thermostatLatestMode = thermostatMode
                        this.thermostatMode = thermostatMode
-                       this.currentThermostatMode = currentThermostatMode
+                       this.currentThermostatMode = thermostatMode
                        thermostats[0].setThermostatMode(thermostatMode)
                }
        }