Restore Daikin A/C on/off services (#25332)
This commit is contained in:
parent
93a65bf507
commit
f6b6818fb0
1 changed files with 11 additions and 0 deletions
|
@ -289,6 +289,17 @@ class DaikinClimate(ClimateDevice):
|
||||||
"""Retrieve latest state."""
|
"""Retrieve latest state."""
|
||||||
await self._api.async_update()
|
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
|
@property
|
||||||
def device_info(self):
|
def device_info(self):
|
||||||
"""Return a device description for device registry."""
|
"""Return a device description for device registry."""
|
||||||
|
|
Loading…
Add table
Reference in a new issue