mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 21:06:19 +00:00
Improve dependencies resolution (#138502)
* Improve dependencies resolution * Improve tests * Better docstrings * Fix comment * Improve tests * Improve logging * Address feedback * Address feedback * Address feedback * Address feedback * Address feedback * Simplify error handling * small log change * Add comment * Address feedback * shorter comments * Add test
This commit is contained in:
@@ -323,7 +323,7 @@ async def _async_setup_component(
|
||||
translation.async_load_integrations(hass, integration_set), loop=hass.loop
|
||||
)
|
||||
# Validate all dependencies exist and there are no circular dependencies
|
||||
if not await integration.resolve_dependencies():
|
||||
if await integration.resolve_dependencies() is None:
|
||||
return False
|
||||
|
||||
# Process requirements as soon as possible, so we can import the component
|
||||
|
||||
Reference in New Issue
Block a user