Add and use UNIT_VOLT constant (#33994)

* Add and use UNIT_VOLT constant

* Run isort
This commit is contained in:
springstan 2020-04-11 02:04:58 +02:00 committed by GitHub
parent 32e87fc4c7
commit 04c4501455
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
22 changed files with 125 additions and 64 deletions

View file

@ -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],