Skip to content

Commit

Permalink
Changes from sync to async
Browse files Browse the repository at this point in the history
  • Loading branch information
c503ghosh committed Aug 29, 2024
1 parent 807f413 commit 55abf4b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions custom_components/dirigera_platform/fan.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,9 +197,9 @@ async def async_set_fan_mode(self, preset_mode: FanModeEnum) -> None:
logger.debug("set_fan_mode : {}".format(preset_mode.value))
await self._hass.async_add_executor_job(self._json_data.set_fan_mode, preset_mode)

def set_fan_mode(self, preset_mode: FanModeEnum) -> None:
logger.debug("set_fan_mode : {}".format(preset_mode.value))
self._hass.async_add_executor_job(self._json_data.set_fan_mode, preset_mode)
#def set_fan_mode(self, preset_mode: FanModeEnum) -> None:
# logger.debug("set_fan_mode : {}".format(preset_mode.value))
# self._hass.async_add_executor_job(self._json_data.set_fan_mode, preset_mode)

async def async_set_preset_mode(self, preset_mode: str):
logger.debug("set_preset_mode : {}".format(preset_mode))
Expand Down

0 comments on commit 55abf4b

Please sign in to comment.