improved trigger code
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
from trigger import Trigger
|
||||
from config import Config
|
||||
import random
|
||||
|
||||
class TestTrigger1(Trigger):
|
||||
def __init__(self, _config: Config) -> None:
|
||||
super().__init__(_config)
|
||||
|
||||
def run(self) -> bool:
|
||||
def run(self) -> None:
|
||||
choices = [False, True]
|
||||
self.log.info("run check code of %s", self.__class__.__name__)
|
||||
return False
|
||||
self.active = random.choice(choices)
|
||||
|
||||
Reference in New Issue
Block a user