mirror of
https://github.com/sususweet/midea-meiju-codec.git
synced 2025-10-15 10:48:26 +00:00
feat: update device support for central air conditioner and washer.
This commit is contained in:
@@ -193,6 +193,12 @@ class MideaClimateEntity(MideaEntity, ClimateEntity):
|
||||
async def async_turn_off(self):
|
||||
await self._async_set_status_on_off(self._key_power, False)
|
||||
|
||||
async def async_toggle(self):
|
||||
if self.is_on:
|
||||
await self.async_turn_off()
|
||||
else:
|
||||
await self.async_turn_on()
|
||||
|
||||
async def async_set_temperature(self, **kwargs):
|
||||
if ATTR_TEMPERATURE not in kwargs:
|
||||
return
|
||||
|
Reference in New Issue
Block a user