mirror of
https://github.com/esphome/esphome.git
synced 2025-09-04 04:12:23 +01:00
use new tornado start methods
This commit is contained in:
@@ -1261,6 +1261,11 @@ class MDNSContainer:
|
|||||||
|
|
||||||
|
|
||||||
class ThreadedAsyncEvent:
|
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:
|
def __init__(self) -> None:
|
||||||
"""Initialize the ThreadedAsyncEvent."""
|
"""Initialize the ThreadedAsyncEvent."""
|
||||||
self.event = threading.Event()
|
self.event = threading.Event()
|
||||||
|
Reference in New Issue
Block a user