Skip to content

Commit

Permalink
fix: switch to async_forward_entry_setups for HA 2024.7.x+ (#378)
Browse files Browse the repository at this point in the history
  • Loading branch information
firstof9 authored Jun 27, 2024
1 parent 006d4f3 commit f0f5c1a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions custom_components/keymaster/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,10 +255,7 @@ def _generate_package(service: ServiceCall) -> None:
config_entry.data[CONF_START],
)

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

# if the use turned on the bool generate the files
if should_generate_package:
Expand Down

0 comments on commit f0f5c1a

Please sign in to comment.