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

Fix pressure max value #47

Merged
merged 3 commits into from
Oct 28, 2024
Merged

Fix pressure max value #47

merged 3 commits into from
Oct 28, 2024

Conversation

LaStrada
Copy link
Member

This was reported here:
home-assistant/core#126976

When a device boots up, the value could be 65535 for a few seconds. This PR fixes this issue by validating the value and ignores everything above 1310.
65535 / 50 = 1310.7

We have the same logic for the other sensors as well.

@LaStrada LaStrada requested a review from HormCodes October 17, 2024 11:49
@LaStrada LaStrada self-assigned this Oct 17, 2024
@LaStrada LaStrada merged commit 792dba2 into main Oct 28, 2024
3 checks passed
@LaStrada LaStrada deleted the fix-pressure-max-value branch October 28, 2024 11:46
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.

1 participant