Fix implicit-return in homekit_controller (#122920)

This commit is contained in:
epenet
2024-07-31 14:21:58 +02:00
committed by GitHub
parent 3bf00822b0
commit 7c7b408df1

View File

@@ -144,7 +144,8 @@ class BaseHomeKitFan(HomeKitEntity, FanEntity):
async def async_set_percentage(self, percentage: int) -> None:
"""Set the speed of the fan."""
if percentage == 0:
return await self.async_turn_off()
await self.async_turn_off()
return
await self.async_put_characteristics(
{