From 21ba39d7954ef3d8b14601b4ce5c5004149508e9 Mon Sep 17 00:00:00 2001 From: Wojtek Siudzinski Date: Thu, 14 Mar 2024 16:17:29 +0100 Subject: [PATCH] Fix the ValueError --- longship/types.py | 4 ++-- pyproject.toml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/longship/types.py b/longship/types.py index 80b4a2c..fc09f7e 100644 --- a/longship/types.py +++ b/longship/types.py @@ -82,13 +82,13 @@ class SessionStopData(SessionUpdateData): @attr.s(auto_attribs=True) class CDRCreatedData: chargepointid: str - locationid: Optional[str] = attr.ib(default=None) - evseid: Optional[str] = attr.ib(default=None) connectornumber: int totalenergyinkwh: float totalduration: str totalcosts: float transactionid: str + locationid: Optional[str] = attr.ib(default=None) + evseid: Optional[str] = attr.ib(default=None) @attr.s(auto_attribs=True) diff --git a/pyproject.toml b/pyproject.toml index 4737731..4d36139 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "longship" -version = "2024.03.14" +version = "2024.03.15" description = "A client library for accessing Longship API" authors = ["Wojtek Siudzinski "]