Fix Vallox extract and supply fan speed measurement units (#77692)

This commit is contained in:
Arto Jantunen 2022-09-18 22:35:19 +03:00 committed by GitHub
parent fa7f04c34b
commit 8fd18cda30
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,
),