Skip to content

Commit

Permalink
chore: Remove deprecated async_add_job
Browse files Browse the repository at this point in the history
  • Loading branch information
agittins committed Apr 2, 2024
1 parent 934a608 commit 8040787
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions custom_components/bermuda/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry):

for platform in PLATFORMS:
coordinator.platforms.append(platform)
hass.async_add_job(
hass.config_entries.async_forward_entry_setup(entry, platform)
)
await hass.config_entries.async_forward_entry_setup(entry, platform)

entry.add_update_listener(async_reload_entry)
return True
Expand Down

0 comments on commit 8040787

Please sign in to comment.