fix again ...

This commit is contained in:
Evgeny Zinoviev 2021-08-08 00:14:53 +03:00
parent 452ce64d62
commit aa912e0dc2

View File

@ -53,7 +53,7 @@ async def handle_client(reader, writer):
status = await relay_get()
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()
writer.close()