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

DOC: Reduce suggested precision to zero after decimal places #92

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

carterbox
Copy link
Contributor

@carterbox carterbox commented Jul 7, 2024

Reduce the default precision for temperature sensors and hot water availablility to zero.

When the temperature sensors have None suggested precision, you get long numbers when using Farenheit units e.g. "125.0006" due to the conversion from celsius. You really just don't need that many decimal places, so the default precision should be zero. e.g. "125F" or "50C".

Likewise, for available hot water percentage. "84.2%" is too much precision. Can the human mind comprehend 1000 unique states of available hot water? Probably not. I think in this case it would actually be most useful to show liters or gallons of hot water remaining, but the Aquanta API does not report this data, so it should be left to the user to template thier own sensor for this purpose using their knowlege of the capacity of their device.

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