Skip to content

Commit

Permalink
Fix type hint v16.datatypes.SampledValue.context (#495)
Browse files Browse the repository at this point in the history

Co-authored-by: Auke Willem Oosterhoff <[email protected]>
  • Loading branch information
Jared-Newell-Mobility and OrangeTux authored Jan 15, 2024
1 parent a9df8eb commit 7d50b6c
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.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

0 comments on commit 7d50b6c

Please sign in to comment.