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
@@ -6,19 +6,19 @@ from epsonprinter_pkg.epsonprinterapi import EpsonPrinterAPI
|
||||
import voluptuous as vol
|
||||
|
||||
from homeassistant.components.sensor import PLATFORM_SCHEMA
|
||||
from homeassistant.const import CONF_HOST, CONF_MONITORED_CONDITIONS, UNIT_PERCENTAGE
|
||||
from homeassistant.const import CONF_HOST, CONF_MONITORED_CONDITIONS, PERCENTAGE
|
||||
from homeassistant.exceptions import PlatformNotReady
|
||||
import homeassistant.helpers.config_validation as cv
|
||||
from homeassistant.helpers.entity import Entity
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
MONITORED_CONDITIONS = {
|
||||
"black": ["Ink level Black", UNIT_PERCENTAGE, "mdi:water"],
|
||||
"photoblack": ["Ink level Photoblack", UNIT_PERCENTAGE, "mdi:water"],
|
||||
"magenta": ["Ink level Magenta", UNIT_PERCENTAGE, "mdi:water"],
|
||||
"cyan": ["Ink level Cyan", UNIT_PERCENTAGE, "mdi:water"],
|
||||
"yellow": ["Ink level Yellow", UNIT_PERCENTAGE, "mdi:water"],
|
||||
"clean": ["Cleaning level", UNIT_PERCENTAGE, "mdi:water"],
|
||||
"black": ["Ink level Black", PERCENTAGE, "mdi:water"],
|
||||
"photoblack": ["Ink level Photoblack", PERCENTAGE, "mdi:water"],
|
||||
"magenta": ["Ink level Magenta", PERCENTAGE, "mdi:water"],
|
||||
"cyan": ["Ink level Cyan", PERCENTAGE, "mdi:water"],
|
||||
"yellow": ["Ink level Yellow", PERCENTAGE, "mdi:water"],
|
||||
"clean": ["Cleaning level", PERCENTAGE, "mdi:water"],
|
||||
}
|
||||
PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user