mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-18 23:06:58 +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
|
||||
default: REST Binary Sensor
|
||||
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
|
||||
type: string
|
||||
value_template:
|
||||
|
@ -65,7 +65,11 @@ name:
|
||||
type: string
|
||||
default: REST Sensor
|
||||
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
|
||||
type: string
|
||||
value_template:
|
||||
|
@ -40,6 +40,10 @@ name:
|
||||
required: false
|
||||
type: string
|
||||
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:
|
||||
description: Timeout for the request.
|
||||
required: false
|
||||
|
Loading…
x
Reference in New Issue
Block a user