diff --git a/CHANGELOG.md b/CHANGELOG.md index 09f46d145..ca6a8e115 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased/Snapshot] +### Fixed +- adapted `LineInput` constructor to convert line length to `StandardUnits.LINE_LENGTH` + ## [2.0.1] - 2021-07-08 ### Fixed diff --git a/src/main/java/edu/ie3/datamodel/models/input/connector/LineInput.java b/src/main/java/edu/ie3/datamodel/models/input/connector/LineInput.java index a4b231e9e..6c794d2fc 100644 --- a/src/main/java/edu/ie3/datamodel/models/input/connector/LineInput.java +++ b/src/main/java/edu/ie3/datamodel/models/input/connector/LineInput.java @@ -95,7 +95,7 @@ public LineInput( OlmCharacteristicInput olmCharacteristic) { super(uuid, id, nodeA, nodeB, parallelDevices); this.type = type; - this.length = length; + this.length = length.to(StandardUnits.LINE_LENGTH); this.geoPosition = GeoUtils.buildSafeLineString(geoPosition); this.olmCharacteristic = olmCharacteristic; }