Skip to content

Commit

Permalink
Update __init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ejpenney authored and InTheDaylight14 committed Apr 25, 2024
1 parent 983b981 commit 17cfb13
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/npm_switches/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ 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.config_entries.async_forward_entry_setup(entry, platform)
entry.async_create_task(hass(
hass, hass.config_entries.async_forward_entry_setup(entry, platform)
)

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

0 comments on commit 17cfb13

Please sign in to comment.