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 support for data with zero values from WoSensorTH #230

Merged
merged 2 commits into from
Jan 24, 2024

Conversation

sheldonip
Copy link
Contributor

This PR is to support processing data with zero values from WoSensorTH. I have experienced that when the power supply is not stable, the meter would advertise zero values and its screen would be flashing. This PR is to ignore those zero values as if no data is received.

Test case is added for the above case.

Co-authored-by: J. Nick Koston <nick@koston.org>
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (9a36e4e) 51.28% compared to head (9417c41) 51.38%.

❗ Current head 9417c41 differs from pull request most recent head 60f8766. Consider uploading reports for the commit 60f8766 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #230      +/-   ##
==========================================
+ Coverage   51.28%   51.38%   +0.10%     
==========================================
  Files          33       33              
  Lines        1441     1444       +3     
==========================================
+ Hits          739      742       +3     
  Misses        702      702              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@bdraco bdraco merged commit b3cbda4 into Danielhiversen:master Jan 24, 2024
6 checks passed
@bdraco
Copy link
Collaborator

bdraco commented Jan 24, 2024

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.

None yet

3 participants