Skip to content

Commit

Permalink
Merge pull request #351 from danieldotnl/fix_trigger
Browse files Browse the repository at this point in the history
Create a trigger service for each configuration.
  • Loading branch information
danieldotnl authored Apr 4, 2024
2 parents c2e941b + 453e20c commit befaa0a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion custom_components/multiscrape/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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


Expand Down

0 comments on commit befaa0a

Please sign in to comment.