Skip to content

Commit

Permalink
Merge pull request #296 from EdLeckert/chore-use-await-async_forward_…
Browse files Browse the repository at this point in the history
…entry_setups

async_forward_entry_setup is deprecated
  • Loading branch information
vinteo authored Jul 8, 2024
2 parents 4645559 + 7341b0b commit dcd3fd1
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions custom_components/opensprinkler/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,7 @@ async def async_update_data():
_LOGGER.error("Unable to connect to OpenSprinkler controller: %s", str(exc))
raise ConfigEntryNotReady

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

# Setup services
async def _async_send_run_command(call: ServiceCall):
Expand Down

0 comments on commit dcd3fd1

Please sign in to comment.