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 suggested_display_precision to sensor values #187

Merged
merged 1 commit into from
Feb 5, 2024

Conversation

cloneofghosts
Copy link
Collaborator

@cloneofghosts cloneofghosts commented Feb 5, 2024

This is a follow up to #186 which adds back the rounding option on the front-end of the card. This PR still adds in the suggested_display_precision to the sensors and also removes rounding on the entity which fixes #177

The values on the entity are rounded before being converted by HA so it can lead to discrepancies between the entity and the sensor values. if someone still needs to round the entity values you can use a weather template to achieve the same thing.

I also tried to look at #185 but I couldn't really figure much out without potentially breaking the integration.

@cloneofghosts cloneofghosts added the bugfix A bug has been fixed label Feb 5, 2024
@cloneofghosts cloneofghosts removed the request for review from alexander0042 February 5, 2024 19:27
@cloneofghosts cloneofghosts merged commit 6d19288 into master Feb 5, 2024
8 checks passed
@cloneofghosts cloneofghosts deleted the rounding_fix2 branch February 5, 2024 19:27
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 6, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bugfix A bug has been fixed
Projects
Development

Successfully merging this pull request may close these issues.

Turning on rounding causes discrepancy between weather card and sensors
2 participants