mirror of
https://github.com/home-assistant/core.git
synced 2025-07-30 02:38:10 +02:00
Add os.walk to asyncio loop blocking detection (#118769)
This commit is contained in:
@ -67,6 +67,9 @@ def enable() -> None:
|
||||
glob.iglob = protect_loop(
|
||||
glob.iglob, strict_core=False, strict=False, loop_thread_id=loop_thread_id
|
||||
)
|
||||
os.walk = protect_loop(
|
||||
os.walk, strict_core=False, strict=False, loop_thread_id=loop_thread_id
|
||||
)
|
||||
|
||||
if not _IN_TESTS:
|
||||
# Prevent files being opened inside the event loop
|
||||
|
Reference in New Issue
Block a user