mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 18:57:06 +00:00
Restore Daikin A/C on/off services (#25332)
This commit is contained in:
parent
48540fc21e
commit
0da0dda39c
@ -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."""
|
||||
|
Loading…
x
Reference in New Issue
Block a user