From 453e20cd8beddbfc7d7c51305e4c1e34b6d72d5a Mon Sep 17 00:00:00 2001 From: danieldotnl Date: Thu, 4 Apr 2024 08:28:31 +0000 Subject: [PATCH] Create trigger services for all configs --- custom_components/multiscrape/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/custom_components/multiscrape/__init__.py b/custom_components/multiscrape/__init__.py index 7550647..f17e1a1 100644 --- a/custom_components/multiscrape/__init__.py +++ b/custom_components/multiscrape/__init__.py @@ -146,6 +146,8 @@ async def _async_process_config(hass: HomeAssistant, config) -> bool: {SCRAPER: scraper, COORDINATOR: coordinator} ) + await setup_config_services(hass, coordinator, config_name) + for platform_domain in PLATFORMS: if platform_domain not in conf: continue @@ -169,7 +171,7 @@ async def _async_process_config(hass: HomeAssistant, config) -> bool: if load_tasks: await asyncio.gather(*load_tasks) - await setup_config_services(hass, coordinator, config_name) + return True