Fix a couple of broken links (#1675)

This commit is contained in:
Erik Montnemery 2023-02-09 13:35:44 +01:00 committed by GitHub
parent 428318d797
commit 9696a0389f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ title: "Sensor entity can now do rounding of numerical values"
---
Note:
The changes described here have been reverted and replaced with rounding for presentation, more details can be found in [this blog post](blog/2023/02/08/sensor_presentation_rounding).
The changes described here have been reverted and replaced with rounding for presentation, more details can be found in [this blog post](/blog/2023/02/08/sensor_presentation_rounding).
`SensorEntity` can now do rounding of a numerical `native_value` when it's converted to the sensor state. This is implemented as a part of [core PR #86074](https://github.com/home-assistant/core/pull/86074). The rounding is opt-in by integrations setting the `native_precision` property. It is recommended that this property is set by integrations because it ensures the number of decimals is reasonable also after unit conversion.

View File

@ -17,4 +17,4 @@ The number of displayed decimal digits is influenced by unit conversion:
The number of displayed decimal digits is not influenced by unit conversion if the user has set the display precision themselves.
Note:
A similar concept where the sensor's state was rounded, detailed in [an earlier blog post](blog/2023/01/25/sensor_rounding), has been reverted.
A similar concept where the sensor's state was rounded, detailed in [an earlier blog post](/blog/2023/01/25/sensor_rounding), has been reverted.