Skip to content

Commit

Permalink
Changed deprecated call to async_forward_entry_setup to await async_f…
Browse files Browse the repository at this point in the history
…orward_entry_setups
  • Loading branch information
sandmanpr committed Sep 1, 2024
1 parent f760e13 commit a982770
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 a982770

Please sign in to comment.