🔨 Change the device class description (#9544)

* 🔨 Change URLs to device classes on dev page

* 🔨 The other url's

* ✏️ Improve the description

* 🔨 Revert the suggested urls
This commit is contained in:
Klaas Schoute 2019-06-03 20:16:01 +02:00 committed by Paulus Schoutsen
parent b346a03336
commit 7aad455bbf
15 changed files with 18 additions and 23 deletions

View File

@ -102,7 +102,7 @@ name:
required: false
type: string
device_class:
description: The [type/class](/components/binary_sensor/) of the sensor to set the icon in the frontend.
description: Sets the [class of the device](/components/binary_sensor/), changing the device state and icon that is displayed on the frontend.
required: false
type: string
{% endconfiguration %}
@ -250,6 +250,6 @@ name:
type: string
device_class:
required: false
description: Sets the class of the device, changing the device state and icon that is displayed on the UI (awning, blind, curtain, damper, door, garage, shade, shutter, window)
description: Sets the [class of the device](/components/cover/), changing the device state and icon that is displayed on the frontend.
type: device_class
{% endconfiguration %}

View File

@ -37,7 +37,7 @@ name:
required: false
type: string
device_class:
description: HASS device class e.g., "motion".
description: Sets the [class of the device](/components/binary_sensor/), changing the device state and icon that is displayed on the frontend.
required: false
type: string
significant_bit:

View File

@ -87,7 +87,7 @@ unique_id:
required: false
type: string
device_class:
description: The [type/class](/components/binary_sensor/) of the sensor to set the icon in the frontend.
description: Sets the [class of the device](/components/binary_sensor/), changing the device state and icon that is displayed on the frontend.
required: false
type: string
value_template:

View File

@ -73,9 +73,7 @@ name:
type: string
default: REST Binary Sensor
device_class:
description: >
The [type/class](/components/binary_sensor/) of
the sensor to set the icon in the frontend.
description: Sets the [class of the device](/components/binary_sensor/), changing the device state and icon that is displayed on the frontend.
required: false
type: string
value_template:

View File

@ -55,7 +55,7 @@ devices:
required: false
type: list
device_class:
description: The [type or class of the sensor](/components/binary_sensor/#device-class) to set the icon in the frontend.
description: Sets the [class of the device](/components/binary_sensor/), changing the device state and icon that is displayed on the frontend.
required: false
type: string
off_delay:

View File

@ -63,7 +63,7 @@ devices:
required: false
type: string
device_class:
description: "The [type or class of the sensor](/components/binary_sensor/) to set the icon in the frontend."
description: Sets the [class of the device](/components/binary_sensor/), changing the device state and icon that is displayed on the frontend.
required: false
type: device_class
fire_event:

View File

@ -56,7 +56,7 @@ sensors:
required: false
type: string, list
device_class:
description: The type/class of the sensor to set the icon in the frontend.
description: Sets the [class of the device](/components/binary_sensor/), changing the device state and icon that is displayed on the frontend.
required: false
type: device_class
default: None

View File

@ -31,6 +31,7 @@ binary_sensor:
<p class='note'>
It's highly recommended to enclose the command in single quotes `'` as it ensures all characters can be used in the command and reduces the risk of unintentional escaping. To include a single quote in a command enclosed in single quotes, double it: `''`.
</p>
{% configuration %}
command:
description: The action to take to get the value.
@ -42,7 +43,7 @@ name:
type: string
default: "*name* from the device"
device_class:
description: The [type/class](/components/binary_sensor/) of the sensor to set the icon in the frontend.
description: Sets the [class of the device](/components/binary_sensor/), changing the device state and icon that is displayed on the frontend.
required: false
type: string
payload_on:

View File

@ -175,7 +175,7 @@ tilt_invert_state:
type: boolean
default: false
device_class:
description: The [type/class](/components/cover/#device-class) of the cover to set the icon in the frontend.
description: Sets the [class of the device](/components/cover/), changing the device state and icon that is displayed on the frontend.
required: false
type: string
json_attributes_topic:

View File

@ -69,7 +69,7 @@ cover:
required: false
type: template
device_class:
description: The [type/class](/components/cover/#device-class) of the cover to set the icon in the frontend.
description: Sets the [class of the device](/components/cover/), changing the device state and icon that is displayed on the frontend.
required: false
type: string
open_cover:

View File

@ -102,7 +102,7 @@ name:
type: string
default: EnOcean binary sensor
device_class:
description: The [type/class](/components/binary_sensor/) of the sensor to set the icon in the frontend.
description: Sets the [class of the device](/components/binary_sensor/), changing the device state and icon that is displayed on the frontend.
required: false
type: device_class
{% endconfiguration %}
@ -193,7 +193,7 @@ name:
type: string
default: EnOcean sensor
device_class:
description: The [type/class](/components/binary_sensor/) of the sensor to set the icon in the frontend.
description: Sets the [class of the device](/components/binary_sensor/), changing the device state and icon that is displayed on the frontend.
required: false
type: device_class
default: powersensor

View File

@ -78,7 +78,7 @@ i2c_hats:
default: false
type: boolean
device_class:
description: See device classes in [binary_sensor component](/components/binary_sensor/).
description: Sets the [class of the device](/components/binary_sensor/), changing the device state and icon that is displayed on the frontend.
required: false
default: "None"
type: string

View File

@ -55,9 +55,7 @@ name:
type: string
default: REST Sensor
device_class:
description: >
The [type/class](/components/sensor/) of
the sensor to set the icon in the frontend.
description: Sets the [class of the device](/components/sensor/), changing the device state and icon that is displayed on the frontend.
required: false
type: string
value_template:

View File

@ -54,9 +54,7 @@ sensors:
required: false
type: string
device_class:
description: >
The [type/class](/components/binary_sensor/#device-class) of
the sensor to set the icon in the frontend.
description: Sets the [class of the device](/components/binary_sensor/), changing the device state and icon that is displayed on the frontend.
required: false
type: string
friendly_name:

View File

@ -68,7 +68,7 @@ devices:
required: false
type: string
device_class:
description: "The [type or class of the sensor](/components/binary_sensor/) to set the icon in the frontend."
description: Sets the [class of the device](/components/binary_sensor/), changing the device state and icon that is displayed on the frontend.
required: false
type: device_class
off_delay: