forked from M-Labs/thermostat
Lazy evaluating for debug string command
This commit is contained in:
parent
05d46030b4
commit
1db3a3ccb9
@ -97,7 +97,7 @@ class Client:
|
||||
line = await asyncio.shield(self._read_write(command))
|
||||
|
||||
response = json.loads(line)
|
||||
logging.debug(f"{command}: {response}")
|
||||
logging.debug("%s: %s", command, response)
|
||||
if "error" in response:
|
||||
raise CommandError(response["error"])
|
||||
return response
|
||||
|
Loading…
Reference in New Issue
Block a user