From 18abecaa1f4f98cee6db5c6a1d8fb96dfd48d08e Mon Sep 17 00:00:00 2001 From: drc38 <20024196+drc38@users.noreply.github.com> Date: Tue, 28 Jun 2022 08:05:33 +1200 Subject: [PATCH] Limit idTag length --- custom_components/ocpp/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/ocpp/api.py b/custom_components/ocpp/api.py index 9e5fd5c5..7e147aa6 100644 --- a/custom_components/ocpp/api.py +++ b/custom_components/ocpp/api.py @@ -651,7 +651,7 @@ async def start_transaction(self): if resp is True: await self.configure(ckey.authorize_remote_tx_requests.value, "false") req = call.RemoteStartTransactionPayload( - connector_id=1, id_tag=self._metrics[cdet.identifier.value].value + connector_id=1, id_tag=self._metrics[cdet.identifier.value].value[:20] ) resp = await self.call(req) if resp.status == RemoteStartStopStatus.accepted: