From cbb7e197c7b36f8aa7dc1f708b817bbdd79a238d Mon Sep 17 00:00:00 2001 From: Flora Date: Wed, 2 Oct 2024 16:13:46 +0200 Subject: [PATCH] Use keyword arguments Signed-off-by: Flora --- RELEASE_NOTES.md | 1 + src/frequenz/reporting/_reporting.py | 1 + 2 files changed, 2 insertions(+) diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index bf67007..6c9f06a 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -15,3 +15,4 @@ ## Bug Fixes * Change 0.0 to nan if there is no data available +* Enforce keyword arguments in cumulative_energy function diff --git a/src/frequenz/reporting/_reporting.py b/src/frequenz/reporting/_reporting.py index b960733..137c112 100644 --- a/src/frequenz/reporting/_reporting.py +++ b/src/frequenz/reporting/_reporting.py @@ -17,6 +17,7 @@ # pylint: disable-next=too-many-arguments async def cumulative_energy( + *, client: ReportingApiClient, microgrid_id: int, component_id: int,