mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Move Honeywell I/O out of event loop (#4244)
This commit is contained in:
parent
c35e5c9997
commit
7774a03a55
@ -223,7 +223,6 @@ class HoneywellUSThermostat(ClimateDevice):
|
|||||||
@property
|
@property
|
||||||
def current_temperature(self):
|
def current_temperature(self):
|
||||||
"""Return the current temperature."""
|
"""Return the current temperature."""
|
||||||
self._device.refresh()
|
|
||||||
return self._device.current_temperature
|
return self._device.current_temperature
|
||||||
|
|
||||||
@property
|
@property
|
||||||
@ -274,3 +273,7 @@ class HoneywellUSThermostat(ClimateDevice):
|
|||||||
"""Set the system mode (Cool, Heat, etc)."""
|
"""Set the system mode (Cool, Heat, etc)."""
|
||||||
if hasattr(self._device, ATTR_SYSTEM_MODE):
|
if hasattr(self._device, ATTR_SYSTEM_MODE):
|
||||||
self._device.system_mode = operation_mode
|
self._device.system_mode = operation_mode
|
||||||
|
|
||||||
|
def update(self):
|
||||||
|
"""Update the state."""
|
||||||
|
self._device.refresh()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user