Skip to content

Commit

Permalink
Replace async_setup_platforms with async_forward_entry_setups
Browse files Browse the repository at this point in the history
  • Loading branch information
klejejs committed Mar 23, 2023
1 parent 103a062 commit 8859e7a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion custom_components/thermia/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@ async def async_setup_entry(hass: HomeAssistant, config_entry: ConfigEntry):

hass.data[DOMAIN][config_entry.entry_id] = coordinator

hass.config_entries.async_setup_platforms(config_entry, PLATFORMS)
for component in PLATFORMS:
hass.async_create_task(
hass.config_entries.async_forward_entry_setup(config_entry, component)
)

config_entry.async_on_unload(config_entry.add_update_listener(async_reload_entry))
return True
Expand Down

0 comments on commit 8859e7a

Please sign in to comment.