mirror of
https://github.com/esphome/esphome.git
synced 2025-02-14 17:08:22 +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):
|
class ListDevicesHandler(BaseHandler):
|
||||||
@authenticated
|
@authenticated
|
||||||
def get(self):
|
async def get(self):
|
||||||
entries = _list_dashboard_entries()
|
loop = asyncio.get_running_loop()
|
||||||
|
entries = await loop.run_in_executor(None, _list_dashboard_entries)
|
||||||
self.set_header("content-type", "application/json")
|
self.set_header("content-type", "application/json")
|
||||||
configured = {entry.name for entry in entries}
|
configured = {entry.name for entry in entries}
|
||||||
self.write(
|
self.write(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user