Skip to content

Commit

Permalink
datatype, sample value, context optional
Browse files Browse the repository at this point in the history
  • Loading branch information
Jared-Newell-Mobility committed Oct 19, 2023
1 parent ad79b31 commit e327de8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
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.21.0 (2023-10-19)

- [#492] Minor fixes _handle_call doc string - Thanks @drc38
Expand Down
2 changes: 1 addition & 1 deletion ocpp/v16/datatypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,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

0 comments on commit e327de8

Please sign in to comment.