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
@@ -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": "",
|
||||
|
||||
Reference in new issue
Block a user