mirror of
https://github.com/home-assistant/core.git
synced 2025-08-07 22:55:10 +02:00
Use REVOLUTIONS_PER_MINUTE constant in glances (#79988)
This commit is contained in:
@@ -16,6 +16,7 @@ from homeassistant.const import (
|
||||
DATA_GIBIBYTES,
|
||||
DATA_MEBIBYTES,
|
||||
PERCENTAGE,
|
||||
REVOLUTIONS_PER_MINUTE,
|
||||
STATE_UNAVAILABLE,
|
||||
TEMP_CELSIUS,
|
||||
Platform,
|
||||
@@ -174,7 +175,7 @@ SENSOR_TYPES: tuple[GlancesSensorEntityDescription, ...] = (
|
||||
key="fan_speed",
|
||||
type="sensors",
|
||||
name_suffix="Fan speed",
|
||||
native_unit_of_measurement="RPM",
|
||||
native_unit_of_measurement=REVOLUTIONS_PER_MINUTE,
|
||||
icon="mdi:fan",
|
||||
state_class=SensorStateClass.MEASUREMENT,
|
||||
),
|
||||
|
Reference in New Issue
Block a user