Add proper set fan curve coroutine method

This commit is contained in:
atse 2023-08-11 16:09:37 +08:00 committed by Tse Kwok Yan
parent cf9d72f2fd
commit de20e8dd54
1 changed files with 4 additions and 0 deletions

View File

@ -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)