Skip to content

Commit

Permalink
Revert changes made in pr mobilityhouse#537 to change DataTransfer.da…
Browse files Browse the repository at this point in the history
…ta typehint. The typehint should be a str type, rather than Any.
  • Loading branch information
alexmclarty committed Jan 15, 2024
1 parent 84cb2f2 commit 862d45e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
- [#548](https://github.com/mobilityhouse/ocpp/issues/548) OCPP 2.0.1 MessageInfoType attribute name correction
- [#300](https://github.com/mobilityhouse/ocpp/issues/300) OCPP 2.0.1 add reference components and variables
- [#518](https://github.com/mobilityhouse/ocpp/issues/518) OCPP 2.0.1 add additional reason codes from v1.3
- [#569](https://github.com/mobilityhouse/ocpp/issues/569) Revert DataTransfer.data type hint

## 0.24.0 (2023-12-07)

Expand Down
2 changes: 1 addition & 1 deletion ocpp/v201/call.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class CustomerInformationPayload:
class DataTransferPayload:
vendor_id: str
message_id: Optional[str] = None
data: Optional[Any] = None
data: Optional[Dict] = None
custom_data: Optional[Dict[str, Any]] = None


Expand Down
2 changes: 1 addition & 1 deletion ocpp/v201/call_result.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ class CustomerInformationPayload:
class DataTransferPayload:
status: str
status_info: Optional[Dict] = None
data: Optional[Any] = None
data: Optional[str] = None
custom_data: Optional[Dict[str, Any]] = None


Expand Down

0 comments on commit 862d45e

Please sign in to comment.