Improve string formatting v3 (#33667)
* Improve string formatting v3 * Address review comment
This commit is contained in:
parent
bf1b408038
commit
c20a965eda
24 changed files with 32 additions and 37 deletions
|
@ -285,7 +285,7 @@ class Hyperion(Light):
|
|||
sock.close()
|
||||
return False
|
||||
|
||||
sock.send(bytearray(json.dumps(request) + "\n", "utf-8"))
|
||||
sock.send(bytearray(f"{json.dumps(request)}\n", "utf-8"))
|
||||
try:
|
||||
buf = sock.recv(4096)
|
||||
except socket.timeout:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue