Add and use UNIT_VOLT constant (#33994)
* Add and use UNIT_VOLT constant * Run isort
This commit is contained in:
parent
32e87fc4c7
commit
04c4501455
22 changed files with 125 additions and 64 deletions
|
@ -8,6 +8,7 @@ from homeassistant.const import (
|
|||
TEMP_CELSIUS,
|
||||
TEMP_FAHRENHEIT,
|
||||
UNIT_PERCENTAGE,
|
||||
UNIT_VOLT,
|
||||
)
|
||||
|
||||
SENSORS = {
|
||||
|
@ -35,7 +36,7 @@ SENSORS = {
|
|||
"S_VIBRATION": ["Hz", None],
|
||||
"S_LIGHT_LEVEL": ["lx", "mdi:white-balance-sunny"],
|
||||
},
|
||||
"V_VOLTAGE": ["V", "mdi:flash"],
|
||||
"V_VOLTAGE": [UNIT_VOLT, "mdi:flash"],
|
||||
"V_CURRENT": ["A", "mdi:flash-auto"],
|
||||
"V_PH": ["pH", None],
|
||||
"V_ORP": ["mV", None],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue