Skip to content

Commit

Permalink
Update breaking ValueDatapoint changes
Browse files Browse the repository at this point in the history
  • Loading branch information
pankalog committed Jan 9, 2024
1 parent 6b56e63 commit 480a061
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
import org.openremote.model.asset.AssetFilter;
import org.openremote.model.attribute.*;
import org.openremote.model.custom.*;
import org.openremote.model.datapoint.AssetDatapoint;
import org.openremote.model.datapoint.ValueDatapoint;
import org.openremote.model.query.AssetQuery;
import org.openremote.model.query.filter.AttributePredicate;
Expand All @@ -30,7 +29,6 @@
import org.openremote.model.syslog.SyslogCategory;
import org.openremote.model.teltonika.*;
import org.openremote.model.value.AttributeDescriptor;
import org.openremote.model.value.MetaItemType;
import org.openremote.model.value.ValueType;

import java.io.IOException;
Expand Down Expand Up @@ -664,7 +662,7 @@ private Optional<Attribute<?>> assetChangedTripState(Attribute<?> previousValue,
// Grab all datapoints (To be replaced by AssetDatapointValueQuery)
// For optimization: Maybe pull the datapoints from the endTime of the previous AssetStateDuration.

ArrayList<ValueDatapoint<?>> list = new ArrayList<>(AssetDatapointService.getDatapoints(ref));
ArrayList<ValueDatapoint> list = new ArrayList<>(AssetDatapointService.getDatapoints(ref));

// If there are no historical data found, add some first
if(list.isEmpty()) return Optional.empty();
Expand Down

0 comments on commit 480a061

Please sign in to comment.