Skip to content

Commit

Permalink
Merge pull request #35 from MoFtZ/bug/async_forward_entry_setup
Browse files Browse the repository at this point in the history
Replace async_foward_entry_setup with async_forward_entry_setups
  • Loading branch information
boc-the-git authored Sep 28, 2024
2 parents da5882e + 2dc03a9 commit 7357cd5
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions custom_components/bonaire_myclimate/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
local_ip = await async_get_source_ip(hass)
hass.data[DOMAIN][entry.entry_id] = hub.Hub(hass, local_ip)

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

async def send_raw_command(call):
"""Handle the service call."""
Expand Down

0 comments on commit 7357cd5

Please sign in to comment.