Skip to content

Commit

Permalink
FIx async_forward_entry_setup deprecation and update install instruct…
Browse files Browse the repository at this point in the history
…ions (#56)

* FIx async_forward_entry_setup deprecation

* Update install instructions
  • Loading branch information
dan-r authored Oct 21, 2024
1 parent b4a2517 commit f2e05cc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,8 @@ The API used in North America is completely separate to Europe and it appears th

### HACS
This is the recommended installation method.
1. Add this repository to HACS as a [custom repository](https://hacs.xyz/docs/faq/custom_repositories)
2. Search for and install the NissanConnect addon from HACS
3. Restart Home Assistant
1. Search for and install the **NissanConnect [EU]** integration from HACS
2. Restart Home Assistant

### Manual
1. Download the [latest release](https://github.com/dan-r/HomeAssistant-NissanConnect/releases)
Expand Down
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 f2e05cc

Please sign in to comment.