Add and use UNIT_VOLT constant (#33994)
* Add and use UNIT_VOLT constant * Run isort
This commit is contained in:
1 parent
32e87fc4c7
commit
04c4501455
22 files changed
+125
-64
No files matched your search
@@ -13,6 +13,7 @@ from homeassistant.const import (
|
||||
CONF_PASSWORD,
|
||||
CONF_USERNAME,
|
||||
ENERGY_KILO_WATT_HOUR,
|
||||
UNIT_VOLT,
|
||||
)
|
||||
import homeassistant.helpers.config_validation as cv
|
||||
from homeassistant.helpers.entity import Entity
|
||||
@@ -57,17 +58,17 @@ INVERTER_SENSOR_TYPES = {
|
||||
"e_total",
|
||||
"power",
|
||||
),
|
||||
"inverter_voltage_input_1": ("Input 1 voltage", "V", "vpv1", None),
|
||||
"inverter_voltage_input_1": ("Input 1 voltage", UNIT_VOLT, "vpv1", None),
|
||||
"inverter_amperage_input_1": ("Input 1 Amperage", "A", "ipv1", None),
|
||||
"inverter_wattage_input_1": ("Input 1 Wattage", "W", "ppv1", "power"),
|
||||
"inverter_voltage_input_2": ("Input 2 voltage", "V", "vpv2", None),
|
||||
"inverter_voltage_input_2": ("Input 2 voltage", UNIT_VOLT, "vpv2", None),
|
||||
"inverter_amperage_input_2": ("Input 2 Amperage", "A", "ipv2", None),
|
||||
"inverter_wattage_input_2": ("Input 2 Wattage", "W", "ppv2", "power"),
|
||||
"inverter_voltage_input_3": ("Input 3 voltage", "V", "vpv3", None),
|
||||
"inverter_voltage_input_3": ("Input 3 voltage", UNIT_VOLT, "vpv3", None),
|
||||
"inverter_amperage_input_3": ("Input 3 Amperage", "A", "ipv3", None),
|
||||
"inverter_wattage_input_3": ("Input 3 Wattage", "W", "ppv3", "power"),
|
||||
"inverter_internal_wattage": ("Internal wattage", "W", "ppv", "power"),
|
||||
"inverter_reactive_voltage": ("Reactive voltage", "V", "vacr", None),
|
||||
"inverter_reactive_voltage": ("Reactive voltage", UNIT_VOLT, "vacr", None),
|
||||
"inverter_inverter_reactive_amperage": ("Reactive amperage", "A", "iacr", None),
|
||||
"inverter_frequency": ("AC frequency", "Hz", "fac", None),
|
||||
"inverter_current_wattage": ("Output power", "W", "pac", "power"),
|
||||
|
||||
Reference in new issue
Block a user