Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

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 1e68246 commit 97c3fda
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions custom_components/openwbmqtt/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,7 @@

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)

# Define services that publish data to MQTT. The published data is subscribed by openWB
# and the respective settings are changed.
Expand Down

1 comment on commit 97c3fda

@a529987659852
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix #69

Please sign in to comment.