Drop UNIT_ prefix for percentage constant (#39383)

This commit is contained in:
springstan authored and GitHub committed 2020-09-05 21:09:14 +02:00
1 parent cdc93d7110
commit d2b1918e9c
183 files changed
+639 -661

No files matched your search

@@ -11,9 +11,9 @@ from homeassistant.const import (
CONF_PASSWORD,
CONF_SCAN_INTERVAL,
CONF_USERNAME,
PERCENTAGE,
TIME_DAYS,
TIME_MINUTES,
UNIT_PERCENTAGE,
)
import homeassistant.helpers.config_validation as cv
from homeassistant.helpers.dispatcher import async_dispatcher_connect, dispatcher_send
@@ -59,7 +59,7 @@ ICON_MAP = {
UNIT_OF_MEASUREMENT_MAP = {
"auto_watering": "",
"battery": UNIT_PERCENTAGE,
"battery": PERCENTAGE,
"is_watering": "",
"manual_watering": "",
"next_cycle": "",