Skip to content

Commit

Permalink
Fix async_forward_entry_setup deprecation - Fix #169
Browse files Browse the repository at this point in the history
  • Loading branch information
andreapier committed Nov 11, 2024
1 parent b709f13 commit 5b07471
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions custom_components/econnect_metronet/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,7 @@ async def async_setup_entry(hass: HomeAssistant, config: ConfigEntry) -> bool:
hass.services.async_register(DOMAIN, "disarm_sectors", partial(services.disarm_sectors, hass, config.entry_id))
hass.services.async_register(DOMAIN, "update_state", partial(services.update_state, hass, config.entry_id))

for component in PLATFORMS:
hass.async_create_task(hass.config_entries.async_forward_entry_setup(config, component))
await hass.config_entries.async_forward_entry_setups(config, PLATFORMS)

return True

Expand Down

0 comments on commit 5b07471

Please sign in to comment.