diff --git a/CHANGELOG.md b/CHANGELOG.md index 2a39a785c0..687660a7c2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -44,6 +44,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Introduce ThermalDemandWrapper [#1049](https://github.com/ie3-institute/simona/issues/1049) - Added Marius Staudt to list of reviewers [#1057](https://github.com/ie3-institute/simona/issues/1057) - Throw exception if the slack node is not directly conected to a transformer. [#525](https://github.com/ie3-institute/simona/issues/525) +- Use ValidationUtils for ThermalGrids [#1117](https://github.com/ie3-institute/simona/issues/1117) ### Changed - Adapted to changed data source in PSDM [#435](https://github.com/ie3-institute/simona/issues/435) diff --git a/src/main/scala/edu/ie3/simona/agent/participant/hp/HpAgentFundamentals.scala b/src/main/scala/edu/ie3/simona/agent/participant/hp/HpAgentFundamentals.scala index 534126b986..086f85fb14 100644 --- a/src/main/scala/edu/ie3/simona/agent/participant/hp/HpAgentFundamentals.scala +++ b/src/main/scala/edu/ie3/simona/agent/participant/hp/HpAgentFundamentals.scala @@ -11,6 +11,7 @@ import edu.ie3.datamodel.models.result.system.{ HpResult, SystemParticipantResult, } +import edu.ie3.datamodel.utils.validation.ValidationUtils import edu.ie3.simona.agent.ValueStore import edu.ie3.simona.agent.participant.ParticipantAgent.getAndCheckNodalVoltage import edu.ie3.simona.agent.participant.ParticipantAgentFundamentals @@ -456,6 +457,7 @@ trait HpAgentFundamentals s"Unable to initialize heat pump agent '${inputModel.electricalInputModel.getUuid}' without thermal grid model." ) case WithHeatInputContainer(_, thermalGrid) => + ValidationUtils.check(thermalGrid) /* Build the actual heat pump model */ HpModel( inputModel.electricalInputModel,