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

refactor: move each inverter in a separate file #63

Merged

Conversation

VadimKraus
Copy link
Contributor

This PR refactors the code base a bit, the files have gotten a bit "lengthy"...
Each inverter resides in an own file now.

Inverter provides default implementations for schema, postprocess_map, sensor_map, reducing code duplication.
I also split up test data into multiple files. One for the the response and one for the expected converted values.

This should hopefully improve the extensibility and maintainability a bit.

* remove redundant inverter mapping methods
* split up test data into multiple files
@squishykid
Copy link
Owner

Howdy, just got back from some time off, but I will try to get this merged asap! I really appreciate this contribution!

@squishykid squishykid merged commit 5672b86 into squishykid:master Apr 21, 2022
@squishykid
Copy link
Owner

Looks great! Thank you for the contribution!

@VadimKraus VadimKraus deleted the feature/refactor-inverter-structure branch April 22, 2022 10:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants