Skip to content

Commit

Permalink
refactor: Change async_setup_platforms to async_forward_entry_setups
Browse files Browse the repository at this point in the history
* Use async_forward_entry_setups in async_setup_entry

* Ran black & isort --profile black on __init__.py
  • Loading branch information
pem884 committed Feb 27, 2023
1 parent 7370dc2 commit d759429
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/babybuddy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ async def async_setup_entry(hass: HomeAssistant, config_entry: ConfigEntry) -> b

hass.data.setdefault(DOMAIN, {})[config_entry.entry_id] = coordinator

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

return True

Expand Down

0 comments on commit d759429

Please sign in to comment.