mirror of
https://github.com/home-assistant/developers.home-assistant.git
synced 2025-07-15 21:36:31 +00:00
Fix a couple of broken links (#1675)
This commit is contained in:
parent
428318d797
commit
9696a0389f
@ -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.
|
||||
|
||||
|
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user