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
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue