Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Add dataclasses for ChargingProfile #648

Open
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

jerome-benoit
Copy link

@jerome-benoit jerome-benoit commented Jun 12, 2024

PR #172 updated with master.

Smart charging algos conception and validation has become a requirement for charging infrastructure. Every single code lines that can help at implementing and testing it worse the effort.

grutts and others added 11 commits January 26, 2021 09:26
In order for remove_nones to work with the charging profile
data structures it needs to be able to remove nones of nested
dictionaries, as well as dictionaries made of lists of dictionaries
(for example, a list of charging schedules represented as dicts).

This commit modifies the logic, and adds tests
For now, dicts are acceptable to maintain backwards compatibility.
Perhaps in v1.0 only the dataclass will be accepted.
* Change Decimal to float
* Move dataclasses to separate charging_profile module
* Add ChargingProfile type to RemoteStartTransaction payload
…drian/add_charging_profile_types

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants