From 8ad691cbde09ee15af2b34ad69c53109d5e73479 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sat, 11 Nov 2023 18:21:08 -0600 Subject: [PATCH] use new tornado start methods --- esphome/dashboard/dashboard.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/esphome/dashboard/dashboard.py b/esphome/dashboard/dashboard.py index 9b39aca973..608202f85f 100644 --- a/esphome/dashboard/dashboard.py +++ b/esphome/dashboard/dashboard.py @@ -1261,6 +1261,11 @@ class MDNSContainer: class ThreadedAsyncEvent: + """This is a shim to allow the asyncio event to be used in a threaded context. + + When more of the code is moved to asyncio, this can be removed. + """ + def __init__(self) -> None: """Initialize the ThreadedAsyncEvent.""" self.event = threading.Event()