Use REVOLUTIONS_PER_MINUTE constant in vallox (#79992)
This commit is contained in:
parent
9aa6043255
commit
c9130e2892
1 changed files with 3 additions and 2 deletions
|
@ -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,
|
||||
),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue