Use REVOLUTIONS_PER_MINUTE constant in danfoss_air (#79987)

pull/80150/head
epenet 2022-10-11 14:56:10 +02:00 committed by GitHub
parent 2538b9d269
commit b1dd646ed8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -10,7 +10,7 @@ from homeassistant.components.sensor import (
SensorEntity,
SensorStateClass,
)
from homeassistant.const import PERCENTAGE, TEMP_CELSIUS
from homeassistant.const import PERCENTAGE, REVOLUTIONS_PER_MINUTE, TEMP_CELSIUS
from homeassistant.core import HomeAssistant
from homeassistant.helpers.entity_platform import AddEntitiesCallback
from homeassistant.helpers.typing import ConfigType, DiscoveryInfoType
@ -75,14 +75,14 @@ def setup_platform(
["Danfoss Air Fan Step", PERCENTAGE, ReadCommand.fan_step, None, None],
[
"Danfoss Air Exhaust Fan Speed",
"RPM",
REVOLUTIONS_PER_MINUTE,
ReadCommand.exhaust_fan_speed,
None,
None,
],
[
"Danfoss Air Supply Fan Speed",
"RPM",
REVOLUTIONS_PER_MINUTE,
ReadCommand.supply_fan_speed,
None,
None,