From c3fdb105eb9b3fa1b14031baa8b323d63e9771c3 Mon Sep 17 00:00:00 2001 From: atse Date: Fri, 11 Aug 2023 16:09:37 +0800 Subject: [PATCH] Add proper set fan curve coroutine method --- pytec/pytec/aioclient.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pytec/pytec/aioclient.py b/pytec/pytec/aioclient.py index 8bf004b..7e5ecd2 100644 --- a/pytec/pytec/aioclient.py +++ b/pytec/pytec/aioclient.py @@ -227,6 +227,10 @@ class Client: """Set fan power""" await self._command("fan", str(power)) + async def set_fcurve(self, a=1.0, b=0.0, c=0.0): + """Set fan curve""" + await self._command("fcurve", str(a), str(b), str(c)) + async def power_up(self, channel, target): """Start closed-loop mode""" await self.set_param("pid", channel, "target", value=target)