diff --git a/innova_controls/airleaf.py b/innova_controls/airleaf.py index 13c85b3..2ca4d3c 100644 --- a/innova_controls/airleaf.py +++ b/innova_controls/airleaf.py @@ -125,10 +125,14 @@ async def night_mode_off(self) -> bool: return False async def set_heating(self) -> bool: - return await super()._set_mode(self.Modes.HEATING) + if self.power or await self.power_on(): + return await self._set_mode(self.Modes.HEATING) + return False async def set_cooling(self) -> bool: - return await super()._set_mode(self.Modes.COOLING) + if self.power or await self.power_on(): + return await self._set_mode(self.Modes.COOLING) + return False async def set_auto(self) -> bool: pass diff --git a/innova_controls/twopointzero.py b/innova_controls/twopointzero.py index 89c2411..b62a02f 100644 --- a/innova_controls/twopointzero.py +++ b/innova_controls/twopointzero.py @@ -138,16 +138,16 @@ async def night_mode_off(self) -> bool: return False async def set_heating(self) -> bool: - return await super()._set_mode(self.Modes.HEATING) + return await self._set_mode(self.Modes.HEATING) async def set_cooling(self) -> bool: - return await super()._set_mode(self.Modes.COOLING) + return await self._set_mode(self.Modes.COOLING) async def set_dehumidifying(self) -> bool: - return await super()._set_mode(self.Modes.DEHUMIDIFICATION) + return await self._set_mode(self.Modes.DEHUMIDIFICATION) async def set_fan_only(self) -> bool: - return await super()._set_mode(self.Modes.FAN_ONLY) + return await self._set_mode(self.Modes.FAN_ONLY) async def set_auto(self) -> bool: - return await super()._set_mode(self.Modes.AUTO) + return await self._set_mode(self.Modes.AUTO)