forked from M-Labs/thermostat
Add optional channel selection for save/load
This commit is contained in:
parent
f3e13cbb0b
commit
953e314abb
@ -218,13 +218,13 @@ class Client:
|
||||
await self.set_param("pid", channel, "target", value=target)
|
||||
await self.set_param("pwm", channel, "pid")
|
||||
|
||||
async def save_config(self):
|
||||
async def save_config(self, channel=""):
|
||||
"""Save current configuration to EEPROM"""
|
||||
await self._command("save")
|
||||
await self._command("save", str(channel))
|
||||
|
||||
async def load_config(self):
|
||||
async def load_config(self, channel=""):
|
||||
"""Load current configuration from EEPROM"""
|
||||
await self._command("load")
|
||||
await self._command("load", str(channel))
|
||||
|
||||
async def hw_rev(self):
|
||||
"""Get Thermostat hardware revision"""
|
||||
|
Loading…
Reference in New Issue
Block a user