Skip to content

Commit

Permalink
#45: Replace async_setup_platforms with async_forward_entry_setups
Browse files Browse the repository at this point in the history
The old `async_setup_platforms` will be removed with 2023.3, and according to https://developers.home-assistant.io/blog/2022/07/08/config_entry_forwards/ just replacing it with an awaited `async_forward_entry_setups` should be enough.
  • Loading branch information
bobvandevijver committed Feb 11, 2023
1 parent bfd98dd commit c4dfbbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/enphase_envoy_custom/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ async def async_update_data():
NAME: name,
}

hass.config_entries.async_setup_platforms(entry, PLATFORMS)
await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS)

return True

Expand Down

0 comments on commit c4dfbbb

Please sign in to comment.