From 262c698853d38de43df4dc32650c93ccd551bda0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Thu, 30 Jun 2022 23:57:19 +0200 Subject: [PATCH] Clarify `accuracy_decimals` in sensor config The documentation for `accuracy_decimals` was a bit vague and inaccurate (oh the irony). I think this is better. As discussed in the Discord channel with @ssieb. --- components/sensor/index.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/sensor/index.rst b/components/sensor/index.rst index 7c42fe36e..dd280288e 100644 --- a/components/sensor/index.rst +++ b/components/sensor/index.rst @@ -50,7 +50,7 @@ Configuration variables: sensor. See https://developers.home-assistant.io/docs/core/entity/sensor/#available-state-classes for a list of available options. Set to ``""`` to remove the default state class of a sensor. - **icon** (*Optional*, icon): Manually set the icon to use for the sensor in the frontend. -- **accuracy_decimals** (*Optional*, int): Manually set the accuracy of decimals to use when reporting values. +- **accuracy_decimals** (*Optional*, int): Manually set the number of decimals to use when reporting values. This does not impact the actual value reported to Home Assistant, it just sets the number of decimals to use when displaying it. - **filters** (*Optional*): Specify filters to use for some basic transforming of values. See :ref:`Sensor Filters ` for more information. - **internal** (*Optional*, boolean): Mark this component as internal. Internal components will