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
@@ -6,6 +6,7 @@ from homeassistant.const import (
|
||||
ENERGY_KILO_WATT_HOUR,
|
||||
POWER_WATT,
|
||||
UNIT_PERCENTAGE,
|
||||
UNIT_VOLT,
|
||||
VOLUME_CUBIC_METERS,
|
||||
)
|
||||
from homeassistant.helpers.entity import Entity
|
||||
@@ -25,7 +26,7 @@ SENSOR_TYPES = {
|
||||
"active_power",
|
||||
],
|
||||
"current": ["Current", "mdi:gauge", "local", "A", "current"],
|
||||
"voltage": ["Voltage", "mdi:gauge", "local", "V", "voltage"],
|
||||
"voltage": ["Voltage", "mdi:gauge", "local", UNIT_VOLT, "voltage"],
|
||||
"active_cosfi": [
|
||||
"Power Factor",
|
||||
"mdi:gauge",
|
||||
|
||||
Reference in new issue
Block a user