Skip to content

Commit

Permalink
Temp fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
iMicknl committed May 27, 2021
1 parent c9f440a commit e503973
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ def __init__(self, device_url: str, coordinator: TahomaDataUpdateCoordinator):
_LOGGER.debug("Initialized HitachiAirToAirHeatPump")

_LOGGER.debug(self.device.definition.states)

_LOGGER.debug(self.device)

# self._fan_modes = self.select_state_definition(FAN_SPEED_STATE)
Expand Down Expand Up @@ -191,14 +190,17 @@ def preset_mode(self) -> Optional[str]:
@property
def preset_modes(self) -> Optional[List[str]]:
"""Return a list of available preset modes."""
return self._preset_modes
return ["auto", "manu"]

async def async_set_preset_mode(self, preset_mode: str) -> None:
"""Set new preset mode."""

if preset_mode == "auto":
await self.async_execute_command("setAutoManu", "auto")

if preset_mode == "manu":
await self.async_execute_command("setAutoManu", "manu")

if preset_mode == "holidays":
await self.async_execute_command("setHolidays", "on")

Expand Down

0 comments on commit e503973

Please sign in to comment.