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
@@ -14,7 +14,7 @@ from homeassistant.components.notify import (
|
||||
PLATFORM_SCHEMA,
|
||||
BaseNotificationService,
|
||||
)
|
||||
from homeassistant.const import CONF_HOST, CONF_TIMEOUT, HTTP_OK, UNIT_PERCENTAGE
|
||||
from homeassistant.const import CONF_HOST, CONF_TIMEOUT, HTTP_OK, PERCENTAGE
|
||||
import homeassistant.helpers.config_validation as cv
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
@@ -68,11 +68,11 @@ POSITIONS = {
|
||||
|
||||
TRANSPARENCIES = {
|
||||
"default": 0,
|
||||
f"0{UNIT_PERCENTAGE}": 1,
|
||||
f"25{UNIT_PERCENTAGE}": 2,
|
||||
f"50{UNIT_PERCENTAGE}": 3,
|
||||
f"75{UNIT_PERCENTAGE}": 4,
|
||||
f"100{UNIT_PERCENTAGE}": 5,
|
||||
f"0{PERCENTAGE}": 1,
|
||||
f"25{PERCENTAGE}": 2,
|
||||
f"50{PERCENTAGE}": 3,
|
||||
f"75{PERCENTAGE}": 4,
|
||||
f"100{PERCENTAGE}": 5,
|
||||
}
|
||||
|
||||
COLORS = {
|
||||
|
||||
Reference in new issue
Block a user