mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-13 04:16:48 +00:00
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.
This commit is contained in:
parent
9a1b0d4a3c
commit
a7d55dfc31
@ -67,15 +67,17 @@ assumed_state:
|
|||||||
type: boolean
|
type: boolean
|
||||||
default: True
|
default: True
|
||||||
device_class:
|
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
|
required: false
|
||||||
type: boolean
|
type: device_class
|
||||||
initial_state:
|
default: None
|
||||||
description: Sets the initial state for automations, `on` or `off`.
|
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
|
required: false
|
||||||
type: string
|
type: string
|
||||||
unit_of_measurement:
|
default: None
|
||||||
description: Defines the units of measurement, if any.
|
initial_state:
|
||||||
|
description: Sets the initial state for automations, `on` or `off`.
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
{% endconfiguration %}
|
{% endconfiguration %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user