mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 16:57:53 +00:00
Fix implicit-return in deconz (#122836)
This commit is contained in:
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…
x
Reference in New Issue
Block a user