mirror of
https://github.com/esphome/esphome.git
synced 2025-02-15 09:28:16 +00:00
Merge branch 'run_get_serial_ports_executor' into integration
This commit is contained in:
commit
72c673bca2
@ -523,8 +523,8 @@ class EsphomeUpdateAllHandler(EsphomeCommandWebSocket):
|
|||||||
|
|
||||||
class SerialPortRequestHandler(BaseHandler):
|
class SerialPortRequestHandler(BaseHandler):
|
||||||
@authenticated
|
@authenticated
|
||||||
def get(self):
|
async def get(self):
|
||||||
ports = get_serial_ports()
|
ports = await tornado.ioloop.IOLoop.run_in_executor(None, get_serial_ports)
|
||||||
data = []
|
data = []
|
||||||
for port in ports:
|
for port in ports:
|
||||||
desc = port.description
|
desc = port.description
|
||||||
|
Loading…
x
Reference in New Issue
Block a user