mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-19 07:17:14 +00:00
add state_class to rest sensor & device_class to rest switch (#19860)
This commit is contained in:
parent
8087cea274
commit
8a8564272b
@ -86,7 +86,7 @@ name:
|
|||||||
type: string
|
type: string
|
||||||
default: REST Binary Sensor
|
default: REST Binary Sensor
|
||||||
device_class:
|
device_class:
|
||||||
description: Sets the [class of the device](/integrations/binary_sensor/), changing the device state and icon that is displayed on the frontend.
|
description: Sets the [class of the device](/integrations/binary_sensor/#device-class), changing the device state and icon that is displayed on the frontend.
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
value_template:
|
value_template:
|
||||||
|
@ -65,7 +65,11 @@ name:
|
|||||||
type: string
|
type: string
|
||||||
default: REST Sensor
|
default: REST Sensor
|
||||||
device_class:
|
device_class:
|
||||||
description: Sets the [class of the device](/integrations/sensor/), changing the device state and icon that is displayed on the frontend.
|
description: Sets the [class of the device](/integrations/sensor#device-class), changing the device state and icon that is displayed on the frontend.
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
state_class:
|
||||||
|
description: The [state_class](https://developers.home-assistant.io/docs/core/entity/sensor#available-state-classes) of the sensor.
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
value_template:
|
value_template:
|
||||||
|
@ -40,6 +40,10 @@ name:
|
|||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
default: REST Switch
|
default: REST Switch
|
||||||
|
device_class:
|
||||||
|
description: Sets the [class of the device](/integrations/switch/#device-class), changing the device state and icon that is displayed on the frontend.
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
timeout:
|
timeout:
|
||||||
description: Timeout for the request.
|
description: Timeout for the request.
|
||||||
required: false
|
required: false
|
||||||
|
Loading…
x
Reference in New Issue
Block a user