Add and use percentage constant (#32094)
* Add and use percentage constant * Fix pylint error and broken test
This commit is contained in:
1 parent
c7f128f286
commit
f1a0ca7cd3
155 files changed
+735
-459
No files matched your search
@@ -1,6 +1,8 @@
|
||||
"""Constants for the pi_hole integration."""
|
||||
from datetime import timedelta
|
||||
|
||||
from homeassistant.const import UNIT_PERCENTAGE
|
||||
|
||||
DOMAIN = "pi_hole"
|
||||
|
||||
CONF_LOCATION = "location"
|
||||
@@ -26,7 +28,7 @@ SENSOR_DICT = {
|
||||
"ads_blocked_today": ["Ads Blocked Today", "ads", "mdi:close-octagon-outline"],
|
||||
"ads_percentage_today": [
|
||||
"Ads Percentage Blocked Today",
|
||||
"%",
|
||||
UNIT_PERCENTAGE,
|
||||
"mdi:close-octagon-outline",
|
||||
],
|
||||
"clients_ever_seen": ["Seen Clients", "clients", "mdi:account-outline"],
|
||||
|
||||
Reference in new issue
Block a user