You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
async def async_set_direction(self, direction: str) -> None:
"""Set the direction of the fan."""
if direction in ["left", "right", "forward", "reverse"]:
if self._oscillate:
await self._try_command(
"Setting oscillate off of the miio device failed.",
self._device.set_oscillate,
False,
)
if direction == "forward":
await self._try_command(
"Setting move direction of the miio device failed.",
self._device.set_rotate,
FanMoveDirection("right"),
)
elif direction == "reverse":
await self._try_command(
"Setting move direction of the miio device failed.",
self._device.set_rotate,
FanMoveDirection("left"),
)
else:
await self._try_command(
"Setting move direction of the miio device failed.",
self._device.set_rotate,
FanMoveDirection(direction),
)
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: