Skip to content

Commit

Permalink
Fix deprecated async_forward_entry_setup
Browse files Browse the repository at this point in the history
  • Loading branch information
tsunglung committed Sep 4, 2024
1 parent f56f1e6 commit 04d53ab
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions custom_components/opencwb/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,7 @@ async def async_setup_entry(hass: HomeAssistant, config_entry: ConfigEntry):
ENTRY_WEATHER_COORDINATOR: weather_coordinator,
}

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)

update_listener = config_entry.add_update_listener(async_update_options)
hass.data[DOMAIN][config_entry.entry_id][UPDATE_LISTENER] = update_listener
Expand Down

0 comments on commit 04d53ab

Please sign in to comment.