mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 01:07:10 +00:00
Restore sensiobo turn on/off methods (#25321)
This commit is contained in:
parent
979f801488
commit
c8abbf6d76
@ -318,6 +318,18 @@ class SensiboClimate(ClimateDevice):
|
|||||||
await self._client.async_set_ac_state_property(
|
await self._client.async_set_ac_state_property(
|
||||||
self._id, 'swing', swing_mode, self._ac_states)
|
self._id, 'swing', swing_mode, self._ac_states)
|
||||||
|
|
||||||
|
async def async_turn_on(self):
|
||||||
|
"""Turn Sensibo unit on."""
|
||||||
|
with async_timeout.timeout(TIMEOUT):
|
||||||
|
await self._client.async_set_ac_state_property(
|
||||||
|
self._id, 'on', True, self._ac_states)
|
||||||
|
|
||||||
|
async def async_turn_off(self):
|
||||||
|
"""Turn Sensibo unit on."""
|
||||||
|
with async_timeout.timeout(TIMEOUT):
|
||||||
|
await self._client.async_set_ac_state_property(
|
||||||
|
self._id, 'on', False, self._ac_states)
|
||||||
|
|
||||||
async def async_assume_state(self, state):
|
async def async_assume_state(self, state):
|
||||||
"""Set external state."""
|
"""Set external state."""
|
||||||
change_needed = \
|
change_needed = \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user