Skip to content

Commit

Permalink
Replace depricated async_add_job
Browse files Browse the repository at this point in the history
  • Loading branch information
toringer committed Apr 30, 2024
1 parent 6651079 commit e767dff
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions custom_components/heru/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry):

hass.data[DOMAIN]["coordinator"] = coordinator

for platform in PLATFORMS:
if entry.options.get(platform, True):
_LOGGER.debug("async_forward_entry_setup")
hass.async_add_job(
hass.config_entries.async_forward_entry_setup(entry, platform)
)
await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS)

entry.async_on_unload(entry.add_update_listener(async_reload_entry))
return True
Expand Down

0 comments on commit e767dff

Please sign in to comment.