Skip to content

Commit

Permalink
Use async_get_loaded_integration in config_entries (#117192)
Browse files Browse the repository at this point in the history
  • Loading branch information
bdraco committed May 11, 2024
1 parent 25c97a5 commit 52cca26
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit 52cca26

Please sign in to comment.