feat: update device support for central air conditioner and washer.

This commit is contained in:
sususweet
2025-10-05 10:27:57 +08:00
parent bd4666e1bd
commit 0328714227
6 changed files with 119 additions and 221 deletions

View File

@@ -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