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
|
@ -1,7 +1,7 @@
|
|||
"""Constants for the pi_hole integration."""
|
||||
from datetime import timedelta
|
||||
|
||||
from homeassistant.const import UNIT_PERCENTAGE
|
||||
from homeassistant.const import PERCENTAGE
|
||||
|
||||
DOMAIN = "pi_hole"
|
||||
|
||||
|
@ -27,7 +27,7 @@ SENSOR_DICT = {
|
|||
"ads_blocked_today": ["Ads Blocked Today", "ads", "mdi:close-octagon-outline"],
|
||||
"ads_percentage_today": [
|
||||
"Ads Percentage Blocked Today",
|
||||
UNIT_PERCENTAGE,
|
||||
PERCENTAGE,
|
||||
"mdi:close-octagon-outline",
|
||||
],
|
||||
"clients_ever_seen": ["Seen Clients", "clients", "mdi:account-outline"],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue