Skip to content

Commit

Permalink
refactor: Replaced deprecated async_forward_entry_setup call
Browse files Browse the repository at this point in the history
  • Loading branch information
Anrolosia committed Oct 19, 2024
1 parent fe8db05 commit b7f9d13
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions custom_components/shopping_list_with_grocy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry):
if DOMAIN not in hass.data:
hass.data[DOMAIN] = {}

for platform in PLATFORMS:
hass.async_create_task(
hass.config_entries.async_forward_entry_setup(entry, platform)
)
await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS)

async_setup_services(hass)

Expand Down

0 comments on commit b7f9d13

Please sign in to comment.