Drop UNIT_ prefix for percentage constant (#39383)

This commit is contained in:
springstan authored and GitHub committed 2020-09-05 21:09:14 +02:00
1 parent cdc93d7110
commit d2b1918e9c
183 files changed
+639 -661

No files matched your search

+2 -6
View File
@@ -3,11 +3,7 @@ import logging
from tesla_powerwall import MeterType, convert_to_kw
from homeassistant.const import (
DEVICE_CLASS_BATTERY,
DEVICE_CLASS_POWER,
UNIT_PERCENTAGE,
)
from homeassistant.const import DEVICE_CLASS_BATTERY, DEVICE_CLASS_POWER, PERCENTAGE
from .const import (
ATTR_ENERGY_EXPORTED,
@@ -69,7 +65,7 @@ class PowerWallChargeSensor(PowerWallEntity):
@property
def unit_of_measurement(self):
"""Return the unit of measurement."""
return UNIT_PERCENTAGE
return PERCENTAGE
@property
def name(self):