class AutomationTrigger:
def __init__(self, threshold):
self.threshold = threshold
self.status = "inactive"
def check_trigger(self, value):
if value > self.threshold:
self.status = "active"
return "Automation triggered!"
else:
return "No action taken."
def get_status(self):
return f"Status: {self.status}"
class AutomationTrigger:
def __init__(self, threshold):
self.threshold = threshold
self.status = "inactive"
def check_trigger(self, value):
if value > self.threshold:
self.status = "active"
return "Automation triggered!"
else:
return "No action taken."
def get_status(self):
return f"Status: {self.status}"
class AutomationTrigger:
def __init__(self, threshold):
self.threshold = threshold
self.status = "inactive"
def check_trigger(self, value):
if value > self.threshold:
self.status = "active"
return "Automation triggered!"
else:
return "No action taken."
def get_status(self):
return f"Status: {self.status}"