Skip to content

Commit

Permalink
Revert "Make more standard set comfocollmode (michaelarnauts#27)"
Browse files Browse the repository at this point in the history
This reverts commit a07a4b9.
  • Loading branch information
szibis committed May 13, 2024
1 parent da0a421 commit dc8910e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
5 changes: 2 additions & 3 deletions aiocomfoconnect/comfoconnect.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
VentilationSetting,
VentilationSpeed,
VentilationTemperatureProfile,
ComfoCoolMode,
)
from aiocomfoconnect.exceptions import (
AioComfoConnectNotConnected,
Expand Down Expand Up @@ -398,9 +397,9 @@ async def get_comfocool_mode(self):

async def set_comfocool_mode(self, mode: Literal["auto", "off"], timeout=-1):
"""Set the comfocool mode (auto / off)."""
if mode == ComfoCoolMode.AUTO:
if mode == "auto":
await self.cmd_rmi_request(bytes([0x85, UNIT_SCHEDULE, SUBUNIT_05, 0x01]))
elif mode == ComfoCoolMode.OFF:
else:
await self.cmd_rmi_request(bytestring([0x84, UNIT_SCHEDULE, SUBUNIT_05, 0x01, 0x00, 0x00, 0x00, 0x00, timeout.to_bytes(4, "little", signed=True), 0x00]))

async def get_temperature_profile(self):
Expand Down
6 changes: 0 additions & 6 deletions aiocomfoconnect/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,9 +207,3 @@ class VentilationSpeed:
LOW = "low"
MEDIUM = "medium"
HIGH = "high"

class ComfoCoolMode:
"""Enum for ventilation settings."""

AUTO = "auto"
OFF = "off"

0 comments on commit dc8910e

Please sign in to comment.