Skip to content

Commit

Permalink
fix validation of deprecated roundtrip-efficiency field in trigger-sc…
Browse files Browse the repository at this point in the history
…hedules endpoint (#582)

Fixes #581.


* fix validation of deprecated roundtrip-efficiency field in trigger-schedules endpoint

Signed-off-by: Nicolas Höning <nicolas@seita.nl>

* add changelog entry

Signed-off-by: Nicolas Höning <nicolas@seita.nl>

Signed-off-by: Nicolas Höning <nicolas@seita.nl>
  • Loading branch information
nhoening committed Jan 12, 2023
1 parent 6910eb0 commit 08938a5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions documentation/changelog.rst
Expand Up @@ -7,6 +7,14 @@ v0.13.0 | February XX, 2023
============================


v0.12.1 | January XX, 2023
============================

Bugfixes
-----------
* Fix validation of (deprecated) API parameter ``roundtrip-efficiency`` [see `PR #582 <https://www.github.com/FlexMeasures/flexmeasures/pull/582>`_]



v0.12.0 | January 4, 2023
============================
Expand Down
2 changes: 1 addition & 1 deletion flexmeasures/api/v3_0/sensors.py
Expand Up @@ -223,7 +223,7 @@ def get_data(self, response: dict):
),
"flex_model": fields.Dict(data_key="flex-model"),
"soc_sensor_id": fields.Str(data_key="soc-sensor", required=False),
"roundtrip_efficiency": fields.Str(data_key="roundtrip-efficiency"),
"roundtrip_efficiency": fields.Raw(data_key="roundtrip-efficiency"),
"start_value": fields.Float(data_key="soc-at-start"),
"soc_min": fields.Float(data_key="soc-min"),
"soc_max": fields.Float(data_key="soc-max"),
Expand Down

0 comments on commit 08938a5

Please sign in to comment.