Add device_class and state_class to Command Line Sensor (#27639)

This commit is contained in:
G Johansson 2023-06-05 13:56:20 +02:00 committed by GitHub
parent ed179196ee
commit 1d596b6386
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -168,6 +168,16 @@ command_line:
description: "Defines a [template](/docs/configuration/templating/#processing-incoming-data) to extract a value from the payload."
required: false
type: string
device_class:
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: device_class
default: None
state_class:
description: "The [state_class](https://developers.home-assistant.io/docs/core/entity/sensor#available-state-classes) of the sensor."
required: false
type: string
default: None
switch:
description: Switch platform.
required: false