Add optional channel selection for save/load

This commit is contained in:
atse 2023-08-06 23:36:54 +08:00
parent f3e13cbb0b
commit 953e314abb
1 changed files with 4 additions and 4 deletions

View File

@ -218,13 +218,13 @@ class Client:
await self.set_param("pid", channel, "target", value=target) await self.set_param("pid", channel, "target", value=target)
await self.set_param("pwm", channel, "pid") await self.set_param("pwm", channel, "pid")
async def save_config(self): async def save_config(self, channel=""):
"""Save current configuration to EEPROM""" """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""" """Load current configuration from EEPROM"""
await self._command("load") await self._command("load", str(channel))
async def hw_rev(self): async def hw_rev(self):
"""Get Thermostat hardware revision""" """Get Thermostat hardware revision"""