summaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2021-08-08 00:09:52 +0300
committerEvgeny Zinoviev <me@ch1p.io>2021-08-08 00:09:52 +0300
commitfe0c2bf88fc20fc32a701b06360592fb62667445 (patch)
tree2fc487809741efcd6676e68ac694a156a7ed28ec /main.py
parent1c4307b653046ecb483629ee5094a9d7a765eb69 (diff)
fix
Diffstat (limited to 'main.py')
-rwxr-xr-xmain.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.py b/main.py
index d9537e8..bfbc40e 100755
--- a/main.py
+++ b/main.py
@@ -54,7 +54,7 @@ async def handle_client(reader, writer):
status = await relay_get()
data = 'on' if status is True else 'off'
- writer.write((json.dumps(data) + '\r\n').encode('utf-8'))
+ writer.write(data + '\r\n').encode('utf-8'))
await writer.drain()
writer.close()