Add device_class section into Modbus sensor and binary sensor docs (#11496)

This commit is contained in:
Vladimír Záhradník 2019-12-24 14:54:58 +01:00 committed by Franck Nijhof
parent 45cbb99adb
commit e7138dee38
2 changed files with 10 additions and 0 deletions

View File

@ -52,6 +52,11 @@ coils:
description: Coil number.
required: true
type: integer
device_class:
description: The [type/class](/integrations/binary_sensor/#device-class) of the binary sensor to set the icon in the frontend.
required: false
type: device_class
default: None
{% endconfiguration %}
It's possible to change the default 30 seconds scan interval for the sensor updates as shown in the [Platform options](/docs/configuration/platform_options/#scan-interval) documentation.

View File

@ -73,6 +73,11 @@ registers:
description: Unit to attach to value.
required: false
type: integer
device_class:
description: The [type/class](/integrations/sensor/#device-class) of the sensor to set the icon in the frontend.
required: false
type: device_class
default: None
count:
description: Number of registers to read.
required: false