Add state_class to KNX sensor (#18782)

This commit is contained in:
Matthias Alphart 2021-08-09 23:42:36 +02:00 committed by GitHub
parent 3b68b45162
commit d2ec06eb6e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1334,6 +1334,10 @@ always_callback:
required: false
type: boolean
default: false
state_class:
description: Sets the [state_class](https://developers.home-assistant.io/docs/core/entity/sensor#available-state-classes) of the sensor.
required: false
type: string
{% endconfiguration %}
### Value Types
@ -1504,6 +1508,7 @@ knx:
state_address: "6/2/1"
sync_state: every 60
type: temperature
state_class: measurement
```
## Switch