Change Ruuvi movement counter to correct state class (#85677)

change Ruuvi movement counter to correct class

The counter's values are 0 to 255 increasing value, so the correct state class as per https://developers.home-assistant.io/docs/core/entity/sensor/#entities-representing-a-total-amount is TOTAL_INCREASING.
This commit is contained in:
Osma Ahvenlampi 2023-01-12 11:29:54 +02:00 committed by GitHub
parent 5a4df9d870
commit 45a41421b6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -77,7 +77,7 @@ SENSOR_DESCRIPTIONS = {
),
(SSDSensorDeviceClass.COUNT, None): SensorEntityDescription(
key="movement_counter",
state_class=SensorStateClass.MEASUREMENT,
state_class=SensorStateClass.TOTAL_INCREASING,
entity_registry_enabled_default=False,
),
}