From ec9947eb8a5b1dd4b57cf08c4c6631dcadeabc11 Mon Sep 17 00:00:00 2001 From: Code-Floof Date: Mon, 22 Jul 2024 02:16:35 -0400 Subject: [PATCH] Update sensors.dart --- lib/Backend/sensors.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Backend/sensors.dart b/lib/Backend/sensors.dart index e6a2aa3a..d3f1da05 100644 --- a/lib/Backend/sensors.dart +++ b/lib/Backend/sensors.dart @@ -546,8 +546,9 @@ class RandomTriggerDefinition extends TriggerDefinition { @override Future onEnable() async { - randomTimer = Timer(Duration(seconds: Random().nextInt(240)), () { + randomTimer = Timer(Duration(seconds: Random().nextInt(120)), () { sendCommands("Action", ref); + onEnable(); }); } }