Skip to content

Commit

Permalink
Backport PR #582: fix validation of deprecated roundtrip-efficiency f…
Browse files Browse the repository at this point in the history
…ield in trigger-schedules 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>
Signed-off-by: F.N. Claessen <felix@seita.nl>
  • Loading branch information
nhoening authored and Flix6x committed Jan 12, 2023
1 parent 0bc9952 commit dec4b4d
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 @@ -3,6 +3,14 @@
FlexMeasures Changelog
**********************

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 dec4b4d

Please sign in to comment.