Rename callback type

This commit is contained in:
abmantis
2025-10-01 22:12:51 +01:00
parent fba50af1c3
commit b8660b4248
4 changed files with 11 additions and 11 deletions

View File

@@ -237,7 +237,7 @@ class Trigger(abc.ABC):
@abc.abstractmethod
async def async_attach_runner(
self, run_action: RunTriggerActionCallback
self, run_action: TriggerActionRunnerCallback
) -> CALLBACK_TYPE:
"""Attach the trigger to an action runner."""
@@ -277,7 +277,7 @@ class TriggerConfig:
options: dict[str, Any] | None = None
class RunTriggerActionCallback(Protocol):
class TriggerActionRunnerCallback(Protocol):
"""Protocol type for the trigger action runner helper callback."""
@callback