mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Fix implicit-return in homekit_controller (#122920)
This commit is contained in:
parent
3bf00822b0
commit
7c7b408df1
@ -144,7 +144,8 @@ class BaseHomeKitFan(HomeKitEntity, FanEntity):
|
|||||||
async def async_set_percentage(self, percentage: int) -> None:
|
async def async_set_percentage(self, percentage: int) -> None:
|
||||||
"""Set the speed of the fan."""
|
"""Set the speed of the fan."""
|
||||||
if percentage == 0:
|
if percentage == 0:
|
||||||
return await self.async_turn_off()
|
await self.async_turn_off()
|
||||||
|
return
|
||||||
|
|
||||||
await self.async_put_characteristics(
|
await self.async_put_characteristics(
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user