mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-21 16:27:19 +00:00
Add device_class section into Modbus sensor and binary sensor docs (#11496)
This commit is contained in:
parent
45cbb99adb
commit
e7138dee38
@ -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.
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user