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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user