Skip to content

Commit

Permalink
FIx async_forward_entry_setup deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-r committed Oct 7, 2024
1 parent a2a455e commit 490c017
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions custom_components/nissan_connect/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,7 @@ async def async_setup_entry(hass, entry):
hass, config)

_LOGGER.debug("Initialising entities")
for component in ENTITY_TYPES:
hass.async_create_task(
hass.config_entries.async_forward_entry_setup(entry, component)
)
await hass.config_entries.async_forward_entry_setups(entry, ENTITY_TYPES)

# Init fetch and state coordinators
await coordinator.async_config_entry_first_refresh()
Expand Down

0 comments on commit 490c017

Please sign in to comment.