Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Some hybrid inverters start with SD not SA #6

Closed
wants to merge 2 commits into from

Conversation

zaheerm
Copy link

@zaheerm zaheerm commented Feb 6, 2022

No description provided.

@dewet22
Copy link
Owner

dewet22 commented Feb 13, 2022

Sorry, been traveling so only getting around to this now! Good to know about this - out of curiosity, what is the text description of your model in the GE dashboard? Mine's Giv-HY5.0

@codecov
Copy link

codecov bot commented Feb 13, 2022

Codecov Report

Merging #6 (0c92b35) into main (db0cf5c) will increase coverage by 0.05%.
The diff coverage is 100.00%.

❗ Current head 0c92b35 differs from pull request most recent head 29ed4a2. Consider uploading reports for the commit 29ed4a2 to get more accurate results

Impacted file tree graph

@@            Coverage Diff             @@
##             main       #6      +/-   ##
==========================================
+ Coverage   90.05%   90.10%   +0.05%     
==========================================
  Files          17       17              
  Lines        1659     1668       +9     
  Branches      153      155       +2     
==========================================
+ Hits         1494     1503       +9     
  Misses        142      142              
  Partials       23       23              
Impacted Files Coverage Δ
givenergy_modbus/model/inverter.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 48b8d8b...29ed4a2. Read the comment docs.

@dewet22
Copy link
Owner

dewet22 commented Feb 14, 2022

You should also do a tox run over the proposed changes (or install and run pre-commit) - the lint tests failed with:

  givenergy_modbus/model/inverter.py:14:1: D101 Missing docstring in public class
  givenergy_modbus/model/inverter.py:26:1: D102 Missing docstring in public method
  tests/model/test_inverter.py:348:1: D103 Missing docstring in public function

@zaheerm
Copy link
Author

zaheerm commented Feb 15, 2022

what is the text description of your model in the GE dashboard?

It's Giv-HY5.0 for me.

@dewet22
Copy link
Owner

dewet22 commented Feb 15, 2022

Interesting, so they seem to be labeled identically. I took your contribution and reworked it a bit last night – hope you don't mind or feel I appropriated it without giving credit (definitely one for the CHANGELOG) but the JSON serialisation is better now (model name instead of serial number prefix) and I fixed the lint warnings at the same time.

@dewet22 dewet22 closed this Feb 15, 2022
@zaheerm
Copy link
Author

zaheerm commented Feb 15, 2022

Thanks no issues, I'm on holiday now so didn't get to the suggested linting. I read your changes and they make sense. In fact I started my changes, changing to auto() instead of keeping the strs. I just didn't know what implications it may have had elsewhere in any dependent code.

@dewet22
Copy link
Owner

dewet22 commented Feb 20, 2022

It's Giv-HY5.0 for me.

Interesting – talking to the folks at GivEnergy they claim the SA model is the 3.6kW Hybrid inverter. Do you know which model you actually have?

@zaheerm
Copy link
Author

zaheerm commented Feb 20, 2022 via email

@dewet22
Copy link
Owner

dewet22 commented Feb 20, 2022

Ah, I got it the wrong way around - mine starts with SA but is also definitely a 5.0kW Hybrid. Odd, I'll try and understand it a bit better. Out of interest, approximately how old is yours?

@zaheerm
Copy link
Author

zaheerm commented Feb 20, 2022 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants