Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Type of v16.datatypes.SampledValue.context is incorrect #495

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Change log

- [#421](https://github.com/mobilityhouse/ocpp/issues/421) Type of v16.datatypes.SampledValue.context is incorrect

## 0.25.0 (2024-01-08)

- [#366](https://github.com/mobilityhouse/ocpp/issues/366) Fix type hint of OCPP 1.6 ChangeConfiguration.value
Expand Down
2 changes: 1 addition & 1 deletion ocpp/v16/datatypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ class SampledValue:
"""

value: str
context: ReadingContext
context: Optional[ReadingContext] = None
format: Optional[ValueFormat] = None
measurand: Optional[Measurand] = None
phase: Optional[Phase] = None
Expand Down
Loading