Skip to content

Commit

Permalink
Update __init__.py
Browse files Browse the repository at this point in the history
async_setup_platforms deprecated in 2023.3

oublié que python est chialeux sur les indentations...

Fix pour issue #215
  • Loading branch information
ic-dev21 committed Feb 15, 2023
1 parent a4b2130 commit c70f9a7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion custom_components/hilo/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,9 @@ async def async_setup_entry( # noqa: C901
hass.data.setdefault(DOMAIN, {})
hass.data[DOMAIN][entry.entry_id] = hilo

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

async def async_reload_entry(_: HomeAssistant, updated_entry: ConfigEntry) -> None:
"""Handle an options update.
Expand Down

0 comments on commit c70f9a7

Please sign in to comment.