From f6b6818fb0d80f6417892008b5839eaac6faf7ba Mon Sep 17 00:00:00 2001 From: Fredrik Erlandsson Date: Sat, 20 Jul 2019 13:41:33 +0200 Subject: [PATCH] Restore Daikin A/C on/off services (#25332) --- homeassistant/components/daikin/climate.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/homeassistant/components/daikin/climate.py b/homeassistant/components/daikin/climate.py index 397c9a607b3..10d1a6161a3 100644 --- a/homeassistant/components/daikin/climate.py +++ b/homeassistant/components/daikin/climate.py @@ -289,6 +289,17 @@ class DaikinClimate(ClimateDevice): """Retrieve latest state.""" await self._api.async_update() + async def async_turn_on(self): + """Turn device on.""" + await self._api.device.set({}) + + async def async_turn_off(self): + """Turn device off.""" + await self._api.device.set({ + HA_ATTR_TO_DAIKIN[ATTR_HVAC_MODE]: + HA_STATE_TO_DAIKIN[HVAC_MODE_OFF] + }) + @property def device_info(self): """Return a device description for device registry."""