Add state and device class to scrape sensor (#19889)

This commit is contained in:
Lukas
2021-11-29 14:01:46 +01:00
committed by GitHub
parent 41d84bec06
commit c77aa7cceb

View File

@@ -55,6 +55,16 @@ unit_of_measurement:
description: Defines the units of measurement of the sensor, if any.
required: false
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:
description: Type of the HTTP authentication. Either `basic` or `digest`.
required: false