forked from M-Labs/thermostat
Add proper set fan curve coroutine method
This commit is contained in:
parent
a54773d3ae
commit
c3fdb105eb
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue