duck.automation.triggerยถ
Module for Automation Triggers.
This module provides classes for defining and managing automation triggers.
It includes a base AutomationTrigger class and a NoTrigger class for scenarios where no trigger is needed.
Module Contentsยถ
Classesยถ
Base class for Automation Triggers. |
|
A trigger that always returns True. |
Dataยถ
APIยถ
- class duck.automation.trigger.AutomationTrigger(name: str = None, description: str = None)[source]ยถ
Base class for Automation Triggers.
This class serves as a blueprint for creating automation triggers.
Initialization
Initialize the AutomationTrigger.
- Parameters:
name โ The name of the trigger.
description โ The description of the trigger.
- duck.automation.trigger.NoTriggerยถ
โNoTriggerBase(โฆ)โ
- class duck.automation.trigger.NoTriggerBase(name: str = None, description: str = None)[source]ยถ
Bases:
duck.automation.trigger.AutomationTriggerA trigger that always returns True.
This trigger can be used in scenarios where no specific trigger condition is required.
Initialization
Initialize the AutomationTrigger.
- Parameters:
name โ The name of the trigger.
description โ The description of the trigger.