Skip to content

Commit

Permalink
replace deprecated async_add_job call (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyler Carr authored Apr 12, 2024
1 parent ee80a44 commit 6e34c66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/noaa_space_weather/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry):
for platform in PLATFORMS:
if entry.options.get(platform, True):
coordinator.platforms.append(platform)
hass.async_add_job(
hass.async_create_task(
hass.config_entries.async_forward_entry_setup(entry, platform)
)
entry.add_update_listener(async_reload_entry)
Expand Down

0 comments on commit 6e34c66

Please sign in to comment.