Move Honeywell I/O out of event loop (#4244)

This commit is contained in:
Paulus Schoutsen 2016-11-06 07:53:54 -08:00 committed by GitHub
parent c35e5c9997
commit 7774a03a55

View File

@ -223,7 +223,6 @@ class HoneywellUSThermostat(ClimateDevice):
@property
def current_temperature(self):
"""Return the current temperature."""
self._device.refresh()
return self._device.current_temperature
@property
@ -274,3 +273,7 @@ class HoneywellUSThermostat(ClimateDevice):
"""Set the system mode (Cool, Heat, etc)."""
if hasattr(self._device, ATTR_SYSTEM_MODE):
self._device.system_mode = operation_mode
def update(self):
"""Update the state."""
self._device.refresh()