Skip to content

Commit

Permalink
TechUpdate: Replace async_forward_entry_setup by async_forward_entry_…
Browse files Browse the repository at this point in the history
…setups
  • Loading branch information
a529987659852 committed Jul 1, 2024
1 parent 4ce6cc8 commit 880f738
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions custom_components/openwb2mqtt/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,8 @@

async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
"""Trigger the creation of sensors."""
for platform in PLATFORMS:
hass.async_create_task(
hass.config_entries.async_forward_entry_setup(entry, platform)
)
await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS)

return True


Expand Down

0 comments on commit 880f738

Please sign in to comment.