Use REVOLUTIONS_PER_MINUTE constant in vallox (#79992)

This commit is contained in:
epenet 2022-10-11 14:02:27 +02:00 committed by GitHub
parent 9aa6043255
commit c9130e2892
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -14,6 +14,7 @@ from homeassistant.config_entries import ConfigEntry
from homeassistant.const import (
CONCENTRATION_PARTS_PER_MILLION,
PERCENTAGE,
REVOLUTIONS_PER_MINUTE,
TEMP_CELSIUS,
)
from homeassistant.core import HomeAssistant
@ -156,7 +157,7 @@ SENSOR_ENTITIES: tuple[ValloxSensorEntityDescription, ...] = (
metric_key="A_CYC_EXTR_FAN_SPEED",
icon="mdi:fan",
state_class=SensorStateClass.MEASUREMENT,
native_unit_of_measurement="RPM",
native_unit_of_measurement=REVOLUTIONS_PER_MINUTE,
entity_type=ValloxFanSpeedSensor,
entity_registry_enabled_default=False,
),
@ -166,7 +167,7 @@ SENSOR_ENTITIES: tuple[ValloxSensorEntityDescription, ...] = (
metric_key="A_CYC_SUPP_FAN_SPEED",
icon="mdi:fan",
state_class=SensorStateClass.MEASUREMENT,
native_unit_of_measurement="RPM",
native_unit_of_measurement=REVOLUTIONS_PER_MINUTE,
entity_type=ValloxFanSpeedSensor,
entity_registry_enabled_default=False,
),