Ver Fonte

Update fan.py (#1167)

sfortis há 3 anos atrás
pai
commit
e49543c3e0
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      custom_components/smartir/fan.py

+ 1 - 1
custom_components/smartir/fan.py

@@ -246,7 +246,7 @@ class SmartIRFan(FanEntity, RestoreEntity):
 
         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(