From e49543c3e0e33f1af10706056721196877eb97f8 Mon Sep 17 00:00:00 2001 From: sfortis <15342157+sfortis@users.noreply.github.com> Date: Mon, 11 Dec 2023 17:15:09 +0200 Subject: [PATCH] Update fan.py (#1167) --- custom_components/smartir/fan.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/smartir/fan.py b/custom_components/smartir/fan.py index 8fb084fb..df386ace 100644 --- a/custom_components/smartir/fan.py +++ b/custom_components/smartir/fan.py @@ -246,7 +246,7 @@ async def async_set_direction(self, direction: str): self.async_write_ha_state() - async def async_turn_on(self, percentage: int = None, **kwargs): + async def async_turn_on(self, percentage: int = None, preset_mode: str = None, **kwargs): """Turn on the fan.""" if percentage is None: percentage = ordered_list_item_to_percentage(