mirror of
https://github.com/home-assistant/core.git
synced 2025-11-09 02:49:40 +00:00
Various type hint improvements (#37952)
This commit is contained in:
@@ -7,7 +7,7 @@ from homeassistant.util.async_ import protect_loop
|
||||
def enable() -> None:
|
||||
"""Enable the detection of I/O in the event loop."""
|
||||
# Prevent urllib3 and requests doing I/O in event loop
|
||||
HTTPConnection.putrequest = protect_loop(HTTPConnection.putrequest)
|
||||
HTTPConnection.putrequest = protect_loop(HTTPConnection.putrequest) # type: ignore
|
||||
|
||||
# Currently disabled. pytz doing I/O when getting timezone.
|
||||
# Prevent files being opened inside the event loop
|
||||
|
||||
Reference in New Issue
Block a user