Skip to content

Commit

Permalink
move trigger defs to built list
Browse files Browse the repository at this point in the history
  • Loading branch information
Codel1417 committed Jun 18, 2024
1 parent 3fe773e commit 78eb8c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Backend/sensors.dart
Original file line number Diff line number Diff line change
Expand Up @@ -774,7 +774,7 @@ class TriggerList extends _$TriggerList {
@Riverpod(keepAlive: true)
class TriggerDefinitionList extends _$TriggerDefinitionList {
@override
List<TriggerDefinition> build() {
BuiltList<TriggerDefinition> build() {
List<TriggerDefinition> triggerDefinitions = [
WalkingTriggerDefinition(ref),
CoverTriggerDefinition(ref),
Expand All @@ -788,7 +788,7 @@ class TriggerDefinitionList extends _$TriggerDefinitionList {
triggerDefinitions.add(VolumeButtonTriggerDefinition(ref));
}
triggerDefinitions.sort();
return triggerDefinitions;
return triggerDefinitions.build();
}

//Filter by unused sensors
Expand Down

0 comments on commit 78eb8c7

Please sign in to comment.