Skip to content

Commit

Permalink
Release 2024.8.1
Browse files Browse the repository at this point in the history
# Release 2024.8.1

## Added
- Nothing

## Updated
- Deprecated hass.config_entries.async_forward_entry_setup; it will be removed in Home Assistant 2025.6. Instead, use await hass.config_entries.async_forward_entry_setups, which supports loading multiple platforms simultaneously. This approach is more efficient as it eliminates the need for a separate import executor job for each platform.

## Removed
- Nothing
  • Loading branch information
jobvk authored Aug 26, 2024
1 parent 10a46a1 commit 63359a8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions custom_components/windcentrale/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ async def async_setup_entry(hass: core.HomeAssistant, entry: config_entries.Conf
hass.data[DOMAIN][entry.entry_id] = wind.Wind(hass, entry)

# This creates an HA object for each platform.
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)
return True

async def async_unload_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
Expand Down

0 comments on commit 63359a8

Please sign in to comment.