aioclient: Add missing readline for saving

Saving all channels returns multiple JSON objects, read the extra {}.
This commit is contained in:
atse 2024-08-27 17:08:11 +08:00
parent 23aafeba08
commit f9b1bf8c6c
1 changed files with 2 additions and 0 deletions

View File

@ -248,6 +248,8 @@ class Client:
async def save_config(self, channel=""):
"""Save current configuration to EEPROM"""
await self._command("save", str(channel))
if channel == "":
await self._read_line() # Read the extra {}
async def load_config(self, channel=""):
"""Load current configuration from EEPROM"""