Drop UNIT_ prefix for percentage constant (#39383)
This commit is contained in:
1 parent
cdc93d7110
commit
d2b1918e9c
183 files changed
+639
-661
No files matched your search
@@ -4,7 +4,7 @@ import logging
|
||||
from libpurecool.dyson_pure_cool import DysonPureCool
|
||||
from libpurecool.dyson_pure_cool_link import DysonPureCoolLink
|
||||
|
||||
from homeassistant.const import STATE_OFF, TEMP_CELSIUS, TIME_HOURS, UNIT_PERCENTAGE
|
||||
from homeassistant.const import PERCENTAGE, STATE_OFF, TEMP_CELSIUS, TIME_HOURS
|
||||
from homeassistant.helpers.entity import Entity
|
||||
|
||||
from . import DYSON_DEVICES
|
||||
@@ -13,7 +13,7 @@ SENSOR_UNITS = {
|
||||
"air_quality": None,
|
||||
"dust": None,
|
||||
"filter_life": TIME_HOURS,
|
||||
"humidity": UNIT_PERCENTAGE,
|
||||
"humidity": PERCENTAGE,
|
||||
}
|
||||
|
||||
SENSOR_ICONS = {
|
||||
|
||||
Reference in new issue
Block a user