forked from M-Labs/thermostat
fix whitespace error
This commit is contained in:
parent
cc187ef80d
commit
df072c415c
@ -32,7 +32,7 @@ class Client:
|
|||||||
return line
|
return line
|
||||||
|
|
||||||
def _command(self, *command):
|
def _command(self, *command):
|
||||||
self._socket.sendall((" ".join(command) + "\n").encode('utf-8'))
|
self._socket.sendall(((" ".join(command)).strip() + "\n").encode('utf-8'))
|
||||||
|
|
||||||
line = self._read_line()
|
line = self._read_line()
|
||||||
response = json.loads(line)
|
response = json.loads(line)
|
||||||
|
Loading…
Reference in New Issue
Block a user