diff --git a/custom_components/mikrotik_router/sensor_types.py b/custom_components/mikrotik_router/sensor_types.py index 88d864a..64a1b7a 100644 --- a/custom_components/mikrotik_router/sensor_types.py +++ b/custom_components/mikrotik_router/sensor_types.py @@ -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",