Skip to content

Commit 17cfb13

Browse files
ejpenneyInTheDaylight14
authored andcommitted
Update __init__.py
1 parent 983b981 commit 17cfb13

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

custom_components/npm_switches/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry):
5959
for platform in PLATFORMS:
6060
if entry.options.get(platform, True):
6161
coordinator.platforms.append(platform)
62-
hass.async_add_job(
63-
hass.config_entries.async_forward_entry_setup(entry, platform)
62+
entry.async_create_task(hass(
63+
hass, hass.config_entries.async_forward_entry_setup(entry, platform)
6464
)
6565

6666
entry.async_on_unload(entry.add_update_listener(async_reload_entry))

0 commit comments

Comments
 (0)