forked from M-Labs/thermostat
aioclient: Add missing readline for saving
Saving all channels returns multiple JSON objects, read the extra {}.
This commit is contained in:
parent
df79d4d977
commit
dc5460f591
@ -218,6 +218,8 @@ class AsyncioClient:
|
||||
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"""
|
||||
|
Loading…
Reference in New Issue
Block a user