From c8abbf6d765d8d85276ab5e2d53c8499ff3365ea Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Fri, 19 Jul 2019 18:04:13 -0700 Subject: [PATCH] Restore sensiobo turn on/off methods (#25321) --- homeassistant/components/sensibo/climate.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/homeassistant/components/sensibo/climate.py b/homeassistant/components/sensibo/climate.py index 17a1d149b9f..cb9bebe16b3 100644 --- a/homeassistant/components/sensibo/climate.py +++ b/homeassistant/components/sensibo/climate.py @@ -318,6 +318,18 @@ class SensiboClimate(ClimateDevice): await self._client.async_set_ac_state_property( 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): """Set external state.""" change_needed = \