mirror of
https://github.com/esphome/esphome.git
synced 2025-09-01 10:52:19 +01:00
use new tornado start methods
This commit is contained in:
@@ -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()
|
||||
|
Reference in New Issue
Block a user