mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-04-28 07:17:36 +00:00
Add state and device class to scrape sensor (#19889)
This commit is contained in:
parent
41d84bec06
commit
c77aa7cceb
@ -55,6 +55,16 @@ unit_of_measurement:
|
|||||||
description: Defines the units of measurement of the sensor, if any.
|
description: Defines the units of measurement of the sensor, if any.
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
|
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
|
||||||
|
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
|
||||||
authentication:
|
authentication:
|
||||||
description: Type of the HTTP authentication. Either `basic` or `digest`.
|
description: Type of the HTTP authentication. Either `basic` or `digest`.
|
||||||
required: false
|
required: false
|
||||||
|
Loading…
x
Reference in New Issue
Block a user