Drop UNIT_ prefix for percentage constant (#39383)
This commit is contained in:
parent
cdc93d7110
commit
d2b1918e9c
183 changed files with 639 additions and 661 deletions
|
@ -6,7 +6,7 @@ import re
|
|||
import voluptuous as vol
|
||||
|
||||
from homeassistant.components.sensor import PLATFORM_SCHEMA
|
||||
from homeassistant.const import CONF_SENSORS, DATA_GIGABYTES, UNIT_PERCENTAGE
|
||||
from homeassistant.const import CONF_SENSORS, DATA_GIGABYTES, PERCENTAGE
|
||||
import homeassistant.helpers.config_validation as cv
|
||||
from homeassistant.helpers.entity import Entity
|
||||
|
||||
|
@ -27,7 +27,7 @@ SENSORS = {
|
|||
SENSOR_SIGNAL: (
|
||||
"signal strength",
|
||||
"Signal Strength",
|
||||
UNIT_PERCENTAGE,
|
||||
PERCENTAGE,
|
||||
"mdi:signal",
|
||||
),
|
||||
SENSOR_SMS_UNREAD: ("sms unread", "SMS unread", "", "mdi:message-text-outline"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue