From b81c7d7f8ed01496a6554801333eedacfe97e84b Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Tue, 11 Oct 2022 14:56:35 +0200 Subject: [PATCH] Use REVOLUTIONS_PER_MINUTE constant in glances (#79988) --- homeassistant/components/glances/sensor.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/glances/sensor.py b/homeassistant/components/glances/sensor.py index f6ae6b6ec17..13f4284acd3 100644 --- a/homeassistant/components/glances/sensor.py +++ b/homeassistant/components/glances/sensor.py @@ -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, ),