diff --git a/custom_components/netdaemon/__init__.py b/custom_components/netdaemon/__init__.py index cbff201..91c3bb3 100644 --- a/custom_components/netdaemon/__init__.py +++ b/custom_components/netdaemon/__init__.py @@ -150,11 +150,7 @@ async def entity_remove(call): hass.services.async_register(DOMAIN, SERVICE_ENTITY_REMOVE, entity_remove) # Platforms - for platform in PLATFORMS: - LOGGER.debug("Adding platfrom %s", platform) - hass.async_add_job( - hass.config_entries.async_forward_entry_setup(config_entry, platform) - ) + await hass.config_entries.async_forward_entry_setups(config_entry, PLATFORMS) config_entry.add_update_listener(async_reload_entry)