1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

Avoid calling async_get_component twice for each component being setup (#112096)

We already have the component so we can pass it to
async_process_component_config to avoid having to
look it up again
This commit is contained in:
J. Nick Koston
2024-03-03 07:48:07 -10:00
committed by GitHub
parent 72efb3dab5
commit 9af12a0639
3 changed files with 17 additions and 15 deletions

View File

@@ -299,7 +299,7 @@ async def _async_setup_component( # noqa: C901
return False
integration_config_info = await conf_util.async_process_component_config(
hass, config, integration
hass, config, integration, component
)
conf_util.async_handle_component_errors(hass, integration_config_info, integration)
processed_config = conf_util.async_drop_config_annotations(