Skip to content

Commit

Permalink
Merge pull request #66 from sandmanpr/await_async_forward_entry_setups
Browse files Browse the repository at this point in the history
Deprecated async_forward_entry_setup -> await async_forward_entry_setups
  • Loading branch information
ClusterM authored Sep 14, 2024
2 parents f56a9aa + a982770 commit 4f1b71c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions custom_components/skykettle/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,7 @@ def schedule_poll(td):
hass.data[DOMAIN][DATA_WORKING] = True
hass.data[DOMAIN][DATA_DEVICE_INFO] = lambda: device_info(entry)

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)

schedule_poll(timedelta(seconds=3))

Expand Down

0 comments on commit 4f1b71c

Please sign in to comment.