Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix fritzbox climate HVAC mode / temperature #25275

merged 4 commits into from Jul 19, 2019
Changes from 1 commit
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.


Just for now

Update tests

  • Loading branch information...
cgtobi committed Jul 19, 2019
commit 1cc1ba990ba42b0ed2cc272175835d8113c5093d
@@ -111,7 +111,10 @@ def set_temperature(self, **kwargs):
def hvac_mode(self):
"""Return the current operation mode."""
if self._target_temperature == OFF_REPORT_SET_TEMPERATURE:
if (
self._target_temperature == OFF_REPORT_SET_TEMPERATURE or
self._target_temperature == OFF_API_TEMPERATURE

@@ -103,7 +103,7 @@ def test_hvac_mode(self):
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
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.