mirror of
https://github.com/home-assistant/core.git
synced 2025-04-24 17:27:52 +00:00
kill target_temperature_low and high. They don't make sense here
This commit is contained in:
parent
2c44e4fb12
commit
7859b76429
@ -111,16 +111,6 @@ class NuHeatThermostat(ClimateDevice):
|
||||
|
||||
return self._thermostat.target_fahrenheit
|
||||
|
||||
@property
|
||||
def target_temperature_low(self):
|
||||
"""Return the lower bound temperature we try to reach."""
|
||||
return self.target_temperature
|
||||
|
||||
@property
|
||||
def target_temperature_high(self):
|
||||
"""Return the upper bound temperature we try to reach."""
|
||||
return self.target_temperature
|
||||
|
||||
@property
|
||||
def current_hold_mode(self):
|
||||
"""Return current hold mode."""
|
||||
|
@ -103,18 +103,6 @@ class TestNuHeat(unittest.TestCase):
|
||||
self.thermostat._temperature_unit = "C"
|
||||
self.assertEqual(self.thermostat.target_temperature, 22)
|
||||
|
||||
def test_target_temperature_low(self):
|
||||
"""Test low target temperature."""
|
||||
self.assertEqual(self.thermostat.target_temperature_low, 72)
|
||||
self.thermostat._temperature_unit = "C"
|
||||
self.assertEqual(self.thermostat.target_temperature_low, 22)
|
||||
|
||||
def test_target_temperature_high(self):
|
||||
"""Test high target temperature."""
|
||||
self.assertEqual(self.thermostat.target_temperature_high, 72)
|
||||
self.thermostat._temperature_unit = "C"
|
||||
self.assertEqual(self.thermostat.target_temperature_high, 22)
|
||||
|
||||
@patch.object(
|
||||
nuheat.NuHeatThermostat, "is_away_mode_on", new_callable=PropertyMock)
|
||||
def test_current_hold_mode_away(self, is_away_mode_on):
|
||||
|
Loading…
x
Reference in New Issue
Block a user