Skip to content

Commit

Permalink
await async_forward_entry_setups
Browse files Browse the repository at this point in the history
addresses deprecation warning about calling async_forward_entry_setup
  • Loading branch information
wtadler committed Aug 8, 2024
1 parent 5e07a3b commit a666d67
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions custom_components/leafspy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry):

hass.http.register_view(LeafSpyView())

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)

hass.data[DOMAIN]['unsub'] = \
async_dispatcher_connect(hass, DOMAIN, async_handle_message)
Expand Down

0 comments on commit a666d67

Please sign in to comment.