Drop UNIT_ prefix for constants (#34164)
* Drop UNIT_ prefix for VOLT * Drop UNIT_ prefix for DEGREE * Drop UNIT_ prefix for CONDUCTIVITY * Drop UNIT_ prefix for UV_INDEX * Run isort
This commit is contained in:
parent
fbde040f59
commit
ef9d9b17bd
42 changed files with 170 additions and 196 deletions
|
@ -13,7 +13,7 @@ from homeassistant.const import (
|
|||
CONF_PORT,
|
||||
TEMP_CELSIUS,
|
||||
UNIT_PERCENTAGE,
|
||||
UNIT_VOLT,
|
||||
VOLT,
|
||||
)
|
||||
import homeassistant.helpers.config_validation as cv
|
||||
from homeassistant.helpers.entity import Entity
|
||||
|
@ -81,9 +81,9 @@ SENSOR_TYPES = {
|
|||
"counter_a": ["counter", "count"],
|
||||
"counter_b": ["counter", "count"],
|
||||
"HobbyBoard": ["none", "none"],
|
||||
"voltage": ["voltage", UNIT_VOLT],
|
||||
"voltage_VAD": ["voltage", UNIT_VOLT],
|
||||
"voltage_VDD": ["voltage", UNIT_VOLT],
|
||||
"voltage": ["voltage", VOLT],
|
||||
"voltage_VAD": ["voltage", VOLT],
|
||||
"voltage_VDD": ["voltage", VOLT],
|
||||
"current": ["current", "A"],
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue