From a7d55dfc31f83500f68c7bd9e990f8570631fff5 Mon Sep 17 00:00:00 2001 From: DubhAd Date: Wed, 10 Oct 2018 08:18:13 +0100 Subject: [PATCH] Clarity update (#6655) The _user_ docs imply that setting the device class sets the unit of measurement. This clearly isn't the case, so doing a set of clarity edits. --- .../configuration/customizing-devices.markdown | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/source/_docs/configuration/customizing-devices.markdown b/source/_docs/configuration/customizing-devices.markdown index 8de3aa169e0..cb059e9ebd9 100644 --- a/source/_docs/configuration/customizing-devices.markdown +++ b/source/_docs/configuration/customizing-devices.markdown @@ -67,15 +67,17 @@ assumed_state: type: boolean default: True device_class: - description: Sets the class of the device, changing the device state and icon that is displayed on the UI (see below). + description: Sets the class of the device, changing the device state and icon that is displayed on the UI (see below). It does not set the `unit_of_measurement`. required: false - type: boolean -initial_state: - description: Sets the initial state for automations, `on` or `off`. + type: device_class + default: None +unit_of_measurement: + description: Defines the units of measurement, if any. This will also influence the graphical presentation in the history visualisation as continuous value. Sensors with missing `unit_of_measurement` are showing as discrete values. required: false type: string -unit_of_measurement: - description: Defines the units of measurement, if any. + default: None +initial_state: + description: Sets the initial state for automations, `on` or `off`. required: false type: string {% endconfiguration %}