From 8e5612b66b5287c75a5ff65cac0e16630a24cbaf Mon Sep 17 00:00:00 2001 From: Erik Montnemery Date: Mon, 23 Aug 2021 11:30:59 +0200 Subject: [PATCH] Document `native_unit_of_measurement` and `native_value` for sensor (#1035) * Document `native_unit_of_measurement` and `native_value` for sensor * Fix typo Co-authored-by: Martin Hjelmare --- docs/core/entity/sensor.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/core/entity/sensor.md b/docs/core/entity/sensor.md index fa41c6a2..602cdb42 100644 --- a/docs/core/entity/sensor.md +++ b/docs/core/entity/sensor.md @@ -13,10 +13,11 @@ Properties should always only return information from memory and not do I/O (lik | Name | Type | Default | Description | ---- | ---- | ------- | ----------- -| state | string | **Required** | The value of the sensor. | device_class | string | `None` | Type of sensor. +| native_value | string | **Required** | The value of the sensor in the sensor's `native_unit_of_measurement`. +| native_unit_of_measurement | string | `None` | The unit of measurement that the sensor's value is expressed in. If the `native_unit_of_measurement` is °C or °F, and its `device_class` is temperature, the sensor's `unit_of_measurement` will be the preferred temperature unit configured by the user and the sensor's `state` will be the `native_value` after an optional unit conversion. | state_class | string | `None` | Type of state. -| unit_of_measurement | string | `None` | The unit of measurement that the sensor is expressed in. + ### Available device classes