From 78eb8c732e83b6b38915dec126a54d91b8e83e56 Mon Sep 17 00:00:00 2001 From: Codel1417 Date: Tue, 18 Jun 2024 15:51:05 -0400 Subject: [PATCH] move trigger defs to built list --- lib/Backend/sensors.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Backend/sensors.dart b/lib/Backend/sensors.dart index 1671a197..11eac78a 100644 --- a/lib/Backend/sensors.dart +++ b/lib/Backend/sensors.dart @@ -774,7 +774,7 @@ class TriggerList extends _$TriggerList { @Riverpod(keepAlive: true) class TriggerDefinitionList extends _$TriggerDefinitionList { @override - List build() { + BuiltList build() { List triggerDefinitions = [ WalkingTriggerDefinition(ref), CoverTriggerDefinition(ref), @@ -788,7 +788,7 @@ class TriggerDefinitionList extends _$TriggerDefinitionList { triggerDefinitions.add(VolumeButtonTriggerDefinition(ref)); } triggerDefinitions.sort(); - return triggerDefinitions; + return triggerDefinitions.build(); } //Filter by unused sensors