1
0
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:
J. Nick Koston 2023-11-11 18:21:08 -06:00
parent 5d8253ddf9
commit 8ad691cbde
No known key found for this signature in database

View File

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