Skip to content

Commit

Permalink
Use async_forward_entry_setups in async_recreate_entities (#3073)
Browse files Browse the repository at this point in the history
  • Loading branch information
ludeeus authored Feb 22, 2023
1 parent 9d97b5f commit 8a66cee
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion custom_components/hacs/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -750,7 +750,9 @@ async def async_recreate_entities(self) -> None:
entry=self.configuration.config_entry,
platforms=platforms,
)
self.hass.config_entries.async_setup_platforms(self.configuration.config_entry, platforms)
await self.hass.config_entries.async_forward_entry_setups(
self.configuration.config_entry, platforms
)

@callback
def async_dispatch(self, signal: HacsDispatchEvent, data: dict | None = None) -> None:
Expand Down

0 comments on commit 8a66cee

Please sign in to comment.