Skip to content

Commit

Permalink
remove comments
Browse files Browse the repository at this point in the history
  • Loading branch information
iMicknl committed Jul 14, 2021
1 parent 0d75ec8 commit a95a087
Showing 1 changed file with 9 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
_LOGGER = logging.getLogger(__name__)

COMMAND_SET_TARGET_TEMPERATURE = "setTargetTemperature"
COMMAND_SET_DEROGATED_TARGET_TEMPERATURE = "setDerogatedTargetTemperature"
COMMAND_SET_TOWEL_DRYER_OPERATING_MODE = "setTowelDryerOperatingMode"
COMMAND_SET_TOWEL_DRYER_TEMPORARY_STATE = "setTowelDryerTemporaryState"

Expand Down Expand Up @@ -130,13 +131,11 @@ async def async_set_temperature(self, **kwargs) -> None:
"""Set new temperature."""
temperature = kwargs.get(ATTR_TEMPERATURE)

await self.async_execute_command(COMMAND_SET_TARGET_TEMPERATURE, temperature)

# if self.hvac_mode == HVAC_MODE_AUTO:
# await self.async_execute_command(
# "setDerogatedTargetTemperature", temperature
# )
# else:
# await self.async_execute_command(
# COMMAND_SET_TARGET_TEMPERATURE, temperature
# )
if self.hvac_mode == HVAC_MODE_AUTO:
await self.async_execute_command(
COMMAND_SET_DEROGATED_TARGET_TEMPERATURE, temperature
)
else:
await self.async_execute_command(
COMMAND_SET_TARGET_TEMPERATURE, temperature
)

0 comments on commit a95a087

Please sign in to comment.