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

@ -1,7 +1,12 @@
"""Constants for the LCN component."""
from itertools import product
from homeassistant.const import TEMP_CELSIUS, TEMP_FAHRENHEIT, UNIT_PERCENTAGE
from homeassistant.const import (
TEMP_CELSIUS,
TEMP_FAHRENHEIT,
UNIT_PERCENTAGE,
UNIT_VOLT,
)
DOMAIN = "lcn"
DATA_LCN = "lcn"
@ -157,7 +162,7 @@ VAR_UNITS = [
"PERCENT",
"PPM",
"VOLT",
"V",
UNIT_VOLT,
"AMPERE",
"AMP",
"A",