mirror of
https://github.com/home-assistant/core.git
synced 2025-07-14 00:37:13 +00:00
Avoid creating executor job in requirements if another call satisfied the requirement (#73451)
This commit is contained in:
parent
bb8b51eda3
commit
08b55939fb
@ -231,9 +231,9 @@ class RequirementsManager:
|
|||||||
|
|
||||||
async with self.pip_lock:
|
async with self.pip_lock:
|
||||||
# Recaculate missing again now that we have the lock
|
# Recaculate missing again now that we have the lock
|
||||||
await self._async_process_requirements(
|
missing = self._find_missing_requirements(requirements)
|
||||||
name, self._find_missing_requirements(requirements)
|
if missing:
|
||||||
)
|
await self._async_process_requirements(name, missing)
|
||||||
|
|
||||||
def _find_missing_requirements(self, requirements: list[str]) -> list[str]:
|
def _find_missing_requirements(self, requirements: list[str]) -> list[str]:
|
||||||
"""Find requirements that are missing in the cache."""
|
"""Find requirements that are missing in the cache."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user