From 8fd18cda303a48f7489482d4d6168079f030639d Mon Sep 17 00:00:00 2001 From: Arto Jantunen Date: Sun, 18 Sep 2022 22:35:19 +0300 Subject: [PATCH] Fix Vallox extract and supply fan speed measurement units (#77692) --- homeassistant/components/vallox/sensor.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/vallox/sensor.py b/homeassistant/components/vallox/sensor.py index d3357e50ad2..2e00452fdf2 100644 --- a/homeassistant/components/vallox/sensor.py +++ b/homeassistant/components/vallox/sensor.py @@ -13,7 +13,6 @@ from homeassistant.components.sensor import ( from homeassistant.config_entries import ConfigEntry from homeassistant.const import ( CONCENTRATION_PARTS_PER_MILLION, - FREQUENCY_HERTZ, PERCENTAGE, TEMP_CELSIUS, ) @@ -157,7 +156,7 @@ SENSOR_ENTITIES: tuple[ValloxSensorEntityDescription, ...] = ( metric_key="A_CYC_EXTR_FAN_SPEED", icon="mdi:fan", state_class=SensorStateClass.MEASUREMENT, - native_unit_of_measurement=FREQUENCY_HERTZ, + native_unit_of_measurement="RPM", entity_type=ValloxFanSpeedSensor, entity_registry_enabled_default=False, ), @@ -167,7 +166,7 @@ SENSOR_ENTITIES: tuple[ValloxSensorEntityDescription, ...] = ( metric_key="A_CYC_SUPP_FAN_SPEED", icon="mdi:fan", state_class=SensorStateClass.MEASUREMENT, - native_unit_of_measurement=FREQUENCY_HERTZ, + native_unit_of_measurement="RPM", entity_type=ValloxFanSpeedSensor, entity_registry_enabled_default=False, ),