diff --git a/sat/tools/async_trigger.py b/sat/tools/async_trigger.py index 5eef003d..1c4e8d26 100644 --- a/sat/tools/async_trigger.py +++ b/sat/tools/async_trigger.py @@ -19,6 +19,7 @@ """Misc usefull classes""" +from typing import Tuple, Any from . import trigger as sync_trigger from . import utils from twisted.internet import defer @@ -53,10 +54,14 @@ class TriggerManager(sync_trigger.TriggerManager): break defer.returnValue(True) - async def asyncReturnPoint(self, point_name, *args, **kwargs): + async def asyncReturnPoint( + self, + point_name: str, + *args, **kwargs + ) -> Tuple[bool, Any]: """Async version of returnPoint""" if point_name not in self.__triggers: - return True + return True, None for priority, trigger in self.__triggers[point_name]: try: