forked from M-Labs/thermostat
Lazy evaluating for debug string command
This commit is contained in:
parent
c0e4d49b7b
commit
920706fbab
@ -70,7 +70,7 @@ class AsyncioClient:
|
||||
line = await 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