Skip to content

Commit

Permalink
Fix deprecated call to async_add_job
Browse files Browse the repository at this point in the history
  • Loading branch information
kikediazfernandez committed May 19, 2024
1 parent 88cc9ce commit 0457477
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/ideenergy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
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)
)

Expand Down

0 comments on commit 0457477

Please sign in to comment.