Handle integration with missing dependencies (#122386)
This commit is contained in:
parent
7ec41275d5
commit
c73e7ae178
2 changed files with 35 additions and 1 deletions
|
@ -906,7 +906,13 @@ async def _async_resolve_domains_to_setup(
|
|||
await asyncio.gather(*resolve_dependencies_tasks)
|
||||
|
||||
for itg in integrations_to_process:
|
||||
for dep in itg.all_dependencies:
|
||||
try:
|
||||
all_deps = itg.all_dependencies
|
||||
except RuntimeError:
|
||||
# Integration.all_dependencies raises RuntimeError if
|
||||
# dependencies could not be resolved
|
||||
continue
|
||||
for dep in all_deps:
|
||||
if dep in domains_to_setup:
|
||||
continue
|
||||
domains_to_setup.add(dep)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue