clean up a couple away temperature settings

This commit is contained in:
Derek Brooks committed 2017-11-13 22:40:18 -06:00
1 parent 6892033556
commit f1fe8e95ba
3 files changed
+24 -14

No files matched your search

+6
View File
@@ -89,9 +89,15 @@ class TestNuHeat(unittest.TestCase):
def test_min_away_temp(self):
"""Test the minimum target temperature to be used in away mode."""
self.assertEqual(self.thermostat.min_away_temp, 41)
# User defined minimum
self.thermostat._min_away_temp = 60
self.assertEqual(self.thermostat.min_away_temp, 60)
# User defined minimum below the thermostat's supported minimum
self.thermostat._min_away_temp = 0
self.assertEqual(self.thermostat.min_away_temp, 41)
def test_min_temp(self):
"""Test min temp."""
self.assertEqual(self.thermostat.min_temp, 41)