Added measurement state class to utilization sensors

This commit is contained in:
Tomaae 2022-08-19 14:02:29 +02:00
parent e1d397f8e1
commit dc2e804f0e
No known key found for this signature in database
GPG key ID: 8360BBD8A381D1C0

View file

@ -230,7 +230,7 @@ SENSOR_TYPES = {
icon="mdi:speedometer",
native_unit_of_measurement=PERCENTAGE,
device_class=None,
state_class=None,
state_class=SensorStateClass.MEASUREMENT,
entity_category=None,
ha_group="System",
data_path="resource",
@ -245,7 +245,7 @@ SENSOR_TYPES = {
icon="mdi:memory",
native_unit_of_measurement=PERCENTAGE,
device_class=None,
state_class=None,
state_class=SensorStateClass.MEASUREMENT,
entity_category=None,
ha_group="System",
data_path="resource",
@ -260,7 +260,7 @@ SENSOR_TYPES = {
icon="mdi:harddisk",
native_unit_of_measurement=PERCENTAGE,
device_class=None,
state_class=None,
state_class=SensorStateClass.MEASUREMENT,
entity_category=None,
ha_group="System",
data_path="resource",