Skip to content

Commit

Permalink
Use async_create_task instead of async_add_job (#278)
Browse files Browse the repository at this point in the history
  • Loading branch information
amosyuen committed Apr 29, 2024
1 parent 82b462b commit cd31f56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/tplink_deco/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ async def async_setup_entry(hass: HomeAssistant, config_entry: ConfigEntry):
deco_coordinator = data[COORDINATOR_DECOS_KEY]

for platform in PLATFORMS:
hass.async_add_job(
config_entry.async_create_task(
hass.config_entries.async_forward_entry_setup(config_entry, platform)
)

Expand Down

0 comments on commit cd31f56

Please sign in to comment.