mirror of
https://github.com/home-assistant/core.git
synced 2025-11-10 11:29:46 +00:00
Limit concurrency of async_get_integration to avoid creating extra threads (#43085)
* Limit concurrency of async_get_integration to avoid creating extra threads Since async_get_integration is waiting on the disk most of the time it would end up creating many new threads because the disk could not deliver the data in time. * pylint
This commit is contained in:
@@ -50,6 +50,8 @@ CUSTOM_WARNING = (
|
||||
)
|
||||
_UNDEF = object()
|
||||
|
||||
MAX_LOAD_CONCURRENTLY = 4
|
||||
|
||||
|
||||
def manifest_from_legacy_module(domain: str, module: ModuleType) -> Dict:
|
||||
"""Generate a manifest from a legacy module."""
|
||||
|
||||
Reference in New Issue
Block a user