Fix fritzbox climate HVAC mode / temperature (#25275)
* Set the target temperature * Update tests * Update tests * Fix linter complaints
This commit is contained in:
1 parent
8b020ea5e6
commit
c4d1cd0e03
2 files changed
+11
-7
No files matched your search
@@ -66,10 +66,10 @@ class TestFritzboxClimate(unittest.TestCase):
|
||||
assert 19.5 == self.thermostat.target_temperature
|
||||
|
||||
self.thermostat._target_temperature = 126.5
|
||||
assert self.thermostat.target_temperature is None
|
||||
assert self.thermostat.target_temperature == 0.0
|
||||
|
||||
self.thermostat._target_temperature = 127.0
|
||||
assert self.thermostat.target_temperature is None
|
||||
assert self.thermostat.target_temperature == 30.0
|
||||
|
||||
@patch.object(FritzboxThermostat, 'set_hvac_mode')
|
||||
def test_set_temperature_operation_mode(self, mock_set_op):
|
||||
@@ -103,7 +103,7 @@ class TestFritzboxClimate(unittest.TestCase):
|
||||
self.thermostat._target_temperature = 127.0
|
||||
assert 'heat' == self.thermostat.hvac_mode
|
||||
self.thermostat._target_temperature = 126.5
|
||||
assert 'heat' == self.thermostat.hvac_mode
|
||||
assert 'off' == self.thermostat.hvac_mode
|
||||
self.thermostat._target_temperature = 22.0
|
||||
assert 'heat' == self.thermostat.hvac_mode
|
||||
self.thermostat._target_temperature = 16.0
|
||||
|
||||
Reference in new issue
Block a user