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:
commit
d41858ee5f
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user