Skip to content

Commit ee27a85

Browse files
authored
Limit idTag length (#552)
1 parent 5455daa commit ee27a85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

custom_components/ocpp/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,7 @@ async def start_transaction(self):
651651
if resp is True:
652652
await self.configure(ckey.authorize_remote_tx_requests.value, "false")
653653
req = call.RemoteStartTransactionPayload(
654-
connector_id=1, id_tag=self._metrics[cdet.identifier.value].value
654+
connector_id=1, id_tag=self._metrics[cdet.identifier.value].value[:20]
655655
)
656656
resp = await self.call(req)
657657
if resp.status == RemoteStartStopStatus.accepted:

0 commit comments

Comments
 (0)