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

Tweak evohome migration #25281

merged 12 commits into from Jul 22, 2019

avoid unnecessary I/O

  • Loading branch information...
zxdavb committed Jul 18, 2019
commit f6318fd5bb61f48d0eea872d0ffb90f021e6ecd8
@@ -376,4 +376,6 @@ def temperature_unit(self) -> str:

def update(self) -> None:
"""Get the latest state data."""
self._schedule = self._evo_device.schedule()
if not self._schedule or \
parse_datetime(self.setpoints['next']['from']) < utcnow():
self._schedule = self._evo_device.schedule()
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.