1
0
mirror of https://github.com/esphome/esphome.git synced 2025-02-12 16:08:19 +00:00

M#erge branch 'mdns_cache' into integration

This commit is contained in:
J. Nick Koston 2023-11-12 18:29:25 -06:00
commit d41858ee5f
No known key found for this signature in database

View File

@ -852,8 +852,9 @@ class DashboardEntry:
class ListDevicesHandler(BaseHandler):
@authenticated
def get(self):
entries = _list_dashboard_entries()
async def get(self):
loop = asyncio.get_running_loop()
entries = await loop.run_in_executor(None, _list_dashboard_entries)
self.set_header("content-type", "application/json")
configured = {entry.name for entry in entries}
self.write(