From 6c6c2328c430e627cc6263ce91151a08169e3d8d Mon Sep 17 00:00:00 2001 From: "create-issue-branch[bot]" <53036503+create-issue-branch[bot]@users.noreply.github.com> Date: Fri, 9 Apr 2021 13:43:12 +0200 Subject: [PATCH] PostMeterData endpoint broken in API v2.0 (#95) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix v2_0.postMeterData endpoint Co-authored-by: nhoening Co-authored-by: Nicolas Höning --- documentation/changelog.rst | 8 ++++++++ flexmeasures/api/v2_0/routes.py | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/documentation/changelog.rst b/documentation/changelog.rst index 6fba835e8..742051b87 100644 --- a/documentation/changelog.rst +++ b/documentation/changelog.rst @@ -16,6 +16,14 @@ Infrastructure / Support * Integration with `timely beliefs `_ lib: Sensor data as TimedBeliefs [see `PR #79 `_] +v0.3.1 | April 9, 2021 +=========================== + +Bugfixes +-------- +* PostMeterData endpoint was broken in API v2.0 [see `PR #95 `_] + + v0.3.0 | April 2, 2021 =========================== diff --git a/flexmeasures/api/v2_0/routes.py b/flexmeasures/api/v2_0/routes.py index f3e4c3bc1..60cc27f07 100644 --- a/flexmeasures/api/v2_0/routes.py +++ b/flexmeasures/api/v2_0/routes.py @@ -761,7 +761,7 @@ def post_meter_data(): :status 403: INVALID_SENDER :status 405: INVALID_METHOD """ - return v2_0_implementations.post_meter_data_response() + return v2_0_implementations.sensors.post_meter_data_response() @flexmeasures_api_v2_0.route("/postPrognosis", methods=["POST"])