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

Integer value indicators don't display digits after decimal point #163

Open
lafite64 opened this issue Dec 23, 2024 · 0 comments
Open

Integer value indicators don't display digits after decimal point #163

lafite64 opened this issue Dec 23, 2024 · 0 comments

Comments

@lafite64
Copy link

Great, card, thanks for all the development work.

A bit OCD but if you have multiples of these in a vertical stack it's nice for the indicators to line up.

For temperature (and other?) indicators which return whole integer values as well as fractions, the card appears hardwired to render just the integer value without the decimal point, but if there's a fraction it shows the value rounded as required, e.g. 'round: 1' code.

So 23.74 renders as 23.7
23.01 renders as 23 rather than 23.0

This means that you can't fix the column widths of the indicators if you want to show anything after the decimal points because it will reduce the space used by the temperature if it is an integer.

Can work around by rounding everything to no decimals except the temperature and putting the temp last, in my instance.

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

No branches or pull requests

1 participant