fix again ...
This commit is contained in:
parent
452ce64d62
commit
aa912e0dc2
2
main.py
2
main.py
@ -53,7 +53,7 @@ async def handle_client(reader, writer):
|
|||||||
status = await relay_get()
|
status = await relay_get()
|
||||||
data = 'on' if status is True else 'off'
|
data = 'on' if status is True else 'off'
|
||||||
|
|
||||||
writer.write(data + '\r\n').encode('utf-8')
|
writer.write((data + '\r\n').encode('utf-8'))
|
||||||
await writer.drain()
|
await writer.drain()
|
||||||
|
|
||||||
writer.close()
|
writer.close()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user