Fix implicit-return in deconz (#122836)
parent
896cd27bea
commit
8066c7dec6
|
@ -95,7 +95,8 @@ class DeconzFan(DeconzDevice[Light], FanEntity):
|
|||
async def async_set_percentage(self, percentage: int) -> None:
|
||||
"""Set the speed percentage of the fan."""
|
||||
if percentage == 0:
|
||||
return await self.async_turn_off()
|
||||
await self.async_turn_off()
|
||||
return
|
||||
await self.hub.api.lights.lights.set_state(
|
||||
id=self._device.resource_id,
|
||||
fan_speed=percentage_to_ordered_list_item(
|
||||
|
|
Loading…
Reference in New Issue