From cffadf919acb11d054263dd3bdbb82f636fd7dc4 Mon Sep 17 00:00:00 2001 From: Fredrik Erlandsson Date: Fri, 8 Nov 2019 17:02:44 +0100 Subject: [PATCH] Add turn_on/off to tfiac (#27712) * Add turn_on/off to tfiac * fix ws issue --- homeassistant/components/tfiac/climate.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/homeassistant/components/tfiac/climate.py b/homeassistant/components/tfiac/climate.py index 7979ffb9cf1..6d23018e897 100644 --- a/homeassistant/components/tfiac/climate.py +++ b/homeassistant/components/tfiac/climate.py @@ -189,3 +189,11 @@ class TfiacClimate(ClimateDevice): async def async_set_swing_mode(self, swing_mode): """Set new swing mode.""" await self._client.set_swing(swing_mode.capitalize()) + + async def async_turn_on(self): + """Turn device on.""" + await self._client.set_state(OPERATION_MODE) + + async def async_turn_off(self): + """Turn device off.""" + await self._client.set_state(ON_MODE, "off")