Add proper set fan curve coroutine method

This commit is contained in:
atse 2023-08-11 16:09:37 +08:00
parent a54773d3ae
commit c3fdb105eb
1 changed files with 4 additions and 0 deletions

View File

@ -227,6 +227,10 @@ class Client:
"""Set fan power""" """Set fan power"""
await self._command("fan", str(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): async def power_up(self, channel, target):
"""Start closed-loop mode""" """Start closed-loop mode"""
await self.set_param("pid", channel, "target", value=target) await self.set_param("pid", channel, "target", value=target)