Drop UNIT_ prefix for percentage constant (#39383)

This commit is contained in:
springstan 2020-09-05 21:09:14 +02:00 committed by GitHub
parent cdc93d7110
commit d2b1918e9c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
183 changed files with 639 additions and 661 deletions

View file

@ -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"],