mirror of
https://github.com/esphome/esphome.git
synced 2025-04-15 07:10:33 +01:00
use new tornado start methods
This commit is contained in:
parent
5d8253ddf9
commit
8ad691cbde
@ -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()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user