1
0
mirror of https://github.com/esphome/esphome.git synced 2025-02-14 17:08:22 +00:00

Merge branch 'run_get_serial_ports_executor' into integration

This commit is contained in:
J. Nick Koston 2023-11-12 18:21:05 -06:00
commit 9c1b9547ec
No known key found for this signature in database

View File

@ -524,7 +524,7 @@ class EsphomeUpdateAllHandler(EsphomeCommandWebSocket):
class SerialPortRequestHandler(BaseHandler):
@authenticated
async def get(self):
ports = await tornado.ioloop.IOLoop.run_in_executor(None, get_serial_ports)
ports = await asyncio.get_running_loop().run_in_executor(None, get_serial_ports)
data = []
for port in ports:
desc = port.description