mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-31 19:45:15 +02:00
refactor(automations): vertical-slice actions and triggers by domain
This commit is contained in:
parent
ce45e11009
commit
8c32455818
24 changed files with 86 additions and 108 deletions
20
surfsense_backend/app/automations/triggers/__init__.py
Normal file
20
surfsense_backend/app/automations/triggers/__init__.py
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
"""Triggers domain: registry surface + built-in trigger packages.
|
||||
|
||||
Each trigger lives in its own subpackage (``manual/``, ``schedule/``, ...) and
|
||||
self-registers at import time via its ``definition`` module.
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from .store import all_triggers, get_trigger, register_trigger
|
||||
from .types import TriggerDefinition
|
||||
|
||||
__all__ = [
|
||||
"TriggerDefinition",
|
||||
"all_triggers",
|
||||
"get_trigger",
|
||||
"register_trigger",
|
||||
]
|
||||
|
||||
# Built-in triggers self-register at import time.
|
||||
from . import manual, schedule # noqa: E402, F401
|
||||
Loading…
Add table
Add a link
Reference in a new issue