1
0
mirror of https://github.com/esphome/esphome.git synced 2025-04-13 14:20:29 +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:
"""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()