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()