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:
1 parent
fbde040f59
commit
ef9d9b17bd
42 files changed
+170
-196
No files matched your search
@@ -10,7 +10,7 @@ from homeassistant.const import (
|
||||
TEMP_CELSIUS,
|
||||
TIME_SECONDS,
|
||||
UNIT_PERCENTAGE,
|
||||
UNIT_VOLT,
|
||||
VOLT,
|
||||
)
|
||||
|
||||
DOMAIN = "nut"
|
||||
@@ -102,15 +102,10 @@ SENSOR_TYPES = {
|
||||
None,
|
||||
],
|
||||
"battery.charger.status": ["Charging Status", "", "mdi:information-outline", None],
|
||||
"battery.voltage": ["Battery Voltage", UNIT_VOLT, "mdi:flash", None],
|
||||
"battery.voltage.nominal": [
|
||||
"Nominal Battery Voltage",
|
||||
UNIT_VOLT,
|
||||
"mdi:flash",
|
||||
None,
|
||||
],
|
||||
"battery.voltage.low": ["Low Battery Voltage", UNIT_VOLT, "mdi:flash", None],
|
||||
"battery.voltage.high": ["High Battery Voltage", UNIT_VOLT, "mdi:flash", None],
|
||||
"battery.voltage": ["Battery Voltage", VOLT, "mdi:flash", None],
|
||||
"battery.voltage.nominal": ["Nominal Battery Voltage", VOLT, "mdi:flash", None],
|
||||
"battery.voltage.low": ["Low Battery Voltage", VOLT, "mdi:flash", None],
|
||||
"battery.voltage.high": ["High Battery Voltage", VOLT, "mdi:flash", None],
|
||||
"battery.capacity": ["Battery Capacity", "Ah", "mdi:flash", None],
|
||||
"battery.current": ["Battery Current", "A", "mdi:flash", None],
|
||||
"battery.current.total": ["Total Battery Current", "A", "mdi:flash", None],
|
||||
@@ -150,16 +145,16 @@ SENSOR_TYPES = {
|
||||
"mdi:information-outline",
|
||||
None,
|
||||
],
|
||||
"input.transfer.low": ["Low Voltage Transfer", UNIT_VOLT, "mdi:flash", None],
|
||||
"input.transfer.high": ["High Voltage Transfer", UNIT_VOLT, "mdi:flash", None],
|
||||
"input.transfer.low": ["Low Voltage Transfer", VOLT, "mdi:flash", None],
|
||||
"input.transfer.high": ["High Voltage Transfer", VOLT, "mdi:flash", None],
|
||||
"input.transfer.reason": [
|
||||
"Voltage Transfer Reason",
|
||||
"",
|
||||
"mdi:information-outline",
|
||||
None,
|
||||
],
|
||||
"input.voltage": ["Input Voltage", UNIT_VOLT, "mdi:flash", None],
|
||||
"input.voltage.nominal": ["Nominal Input Voltage", UNIT_VOLT, "mdi:flash", None],
|
||||
"input.voltage": ["Input Voltage", VOLT, "mdi:flash", None],
|
||||
"input.voltage.nominal": ["Nominal Input Voltage", VOLT, "mdi:flash", None],
|
||||
"input.frequency": ["Input Line Frequency", FREQUENCY_HERTZ, "mdi:flash", None],
|
||||
"input.frequency.nominal": [
|
||||
"Nominal Input Line Frequency",
|
||||
@@ -175,8 +170,8 @@ SENSOR_TYPES = {
|
||||
],
|
||||
"output.current": ["Output Current", "A", "mdi:flash", None],
|
||||
"output.current.nominal": ["Nominal Output Current", "A", "mdi:flash", None],
|
||||
"output.voltage": ["Output Voltage", UNIT_VOLT, "mdi:flash", None],
|
||||
"output.voltage.nominal": ["Nominal Output Voltage", UNIT_VOLT, "mdi:flash", None],
|
||||
"output.voltage": ["Output Voltage", VOLT, "mdi:flash", None],
|
||||
"output.voltage.nominal": ["Nominal Output Voltage", VOLT, "mdi:flash", None],
|
||||
"output.frequency": ["Output Frequency", FREQUENCY_HERTZ, "mdi:flash", None],
|
||||
"output.frequency.nominal": [
|
||||
"Nominal Output Frequency",
|
||||
|
||||
Reference in new issue
Block a user