Add and use percentage constant (#32094)
* Add and use percentage constant * Fix pylint error and broken test
This commit is contained in:
parent
c7f128f286
commit
f1a0ca7cd3
155 changed files with 735 additions and 459 deletions
|
@ -7,6 +7,7 @@ from homeassistant.const import (
|
|||
CONCENTRATION_MILLIGRAMS_PER_CUBIC_METER,
|
||||
CONCENTRATION_PARTS_PER_BILLION,
|
||||
CONCENTRATION_PARTS_PER_MILLION,
|
||||
UNIT_PERCENTAGE,
|
||||
)
|
||||
|
||||
DOMAIN = "kaiterra"
|
||||
|
@ -53,7 +54,7 @@ ATTR_AQI_POLLUTANT = "air_quality_index_pollutant"
|
|||
AVAILABLE_AQI_STANDARDS = ["us", "cn", "in"]
|
||||
AVAILABLE_UNITS = [
|
||||
"x",
|
||||
"%",
|
||||
UNIT_PERCENTAGE,
|
||||
"C",
|
||||
"F",
|
||||
CONCENTRATION_MILLIGRAMS_PER_CUBIC_METER,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue