Skip to content

Commit

Permalink
Merge pull request #137 from TNTLarsn/patch-1
Browse files Browse the repository at this point in the history
Replace deprecated async_forward_entry_setup call
  • Loading branch information
fvanroie authored Aug 6, 2024
2 parents b42c822 + 276c4cd commit a8eb383
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions custom_components/openhasp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,11 +264,8 @@ async def async_setup_entry(hass, entry) -> bool:
await component.async_add_entities([plate_entity])
hass.data[DOMAIN][CONF_PLATE][plate] = plate_entity

for domain in PLATFORMS:
hass.async_create_task(
hass.config_entries.async_forward_entry_setup(entry, domain)
)

await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS)

listener = entry.add_update_listener(async_update_options)
entry.async_on_unload(listener)

Expand Down

0 comments on commit a8eb383

Please sign in to comment.