1
0
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:
Artur Pragacz
2025-03-11 10:12:23 +01:00
committed by GitHub
parent 52408e67b2
commit 4f25296c50
5 changed files with 398 additions and 247 deletions

View File

@@ -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