Add suggested_display_precision to sensor values #187
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.