mirror of
https://github.com/home-assistant/core.git
synced 2025-07-25 22:27:07 +00:00
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:
parent
5a4df9d870
commit
45a41421b6
@ -77,7 +77,7 @@ SENSOR_DESCRIPTIONS = {
|
|||||||
),
|
),
|
||||||
(SSDSensorDeviceClass.COUNT, None): SensorEntityDescription(
|
(SSDSensorDeviceClass.COUNT, None): SensorEntityDescription(
|
||||||
key="movement_counter",
|
key="movement_counter",
|
||||||
state_class=SensorStateClass.MEASUREMENT,
|
state_class=SensorStateClass.TOTAL_INCREASING,
|
||||||
entity_registry_enabled_default=False,
|
entity_registry_enabled_default=False,
|
||||||
),
|
),
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user