Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use async_get_loaded_integration in config_entries #117192

Merged
merged 5 commits into from
May 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions homeassistant/config_entries.py
Original file line number Diff line number Diff line change
Expand Up @@ -1995,7 +1995,7 @@ async def _async_forward_entry_setup(
with async_pause_setup(self.hass, SetupPhases.WAIT_IMPORT_PLATFORMS):
await integration.async_get_platform(domain)

integration = await loader.async_get_integration(self.hass, domain)
integration = loader.async_get_loaded_integration(self.hass, domain)
await entry.async_setup(self.hass, integration=integration)
return True

Expand Down Expand Up @@ -2023,7 +2023,7 @@ async def async_forward_entry_unload(
if domain not in self.hass.config.components:
return True

integration = await loader.async_get_integration(self.hass, domain)
integration = loader.async_get_loaded_integration(self.hass, domain)

return await entry.async_unload(self.hass, integration=integration)

Expand Down