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
jaym25 authored Jul 5, 2024
1 parent b808d3b commit f049ac1
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions custom_components/remote_homeassistant/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,12 +257,7 @@ async def setup_components_and_platforms():
for domain in entry.options.get(CONF_LOAD_COMPONENTS, []):
hass.async_create_task(async_setup_component(hass, domain, {}))

await asyncio.gather(
*[
hass.config_entries.async_forward_entry_setup(entry, platform)
for platform in PLATFORMS
]
)
await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS)
await remote.async_connect()

hass.async_create_task(setup_components_and_platforms())
Expand Down

0 comments on commit f049ac1

Please sign in to comment.