mirror of
https://github.com/home-assistant/core.git
synced 2025-07-10 06:47:09 +00:00
Add turn on/off to coolmaster (#25097)
This commit is contained in:
parent
f25f44a75b
commit
0478e7f41d
@ -169,7 +169,17 @@ class CoolmasterClimate(ClimateDevice):
|
||||
hvac_mode)
|
||||
|
||||
if hvac_mode == HVAC_MODE_OFF:
|
||||
self._device.turn_off()
|
||||
self.turn_off()
|
||||
else:
|
||||
self._device.set_mode(HA_STATE_TO_CM[hvac_mode])
|
||||
self.turn_on()
|
||||
|
||||
def turn_on(self):
|
||||
"""Turn on."""
|
||||
_LOGGER.debug("Turning %s on", self.unique_id)
|
||||
self._device.turn_on()
|
||||
|
||||
def turn_off(self):
|
||||
"""Turn off."""
|
||||
_LOGGER.debug("Turning %s off", self.unique_id)
|
||||
self._device.turn_off()
|
||||
|
Loading…
x
Reference in New Issue
Block a user