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,5 +1,5 @@
|
|||
"""Support for LightwaveRF TRV - Associated Battery."""
|
||||
from homeassistant.const import CONF_NAME, DEVICE_CLASS_BATTERY, UNIT_PERCENTAGE
|
||||
from homeassistant.const import CONF_NAME, DEVICE_CLASS_BATTERY, PERCENTAGE
|
||||
from homeassistant.helpers.entity import Entity
|
||||
|
||||
from . import CONF_SERIAL, LIGHTWAVE_LINK
|
||||
|
@ -50,7 +50,7 @@ class LightwaveBattery(Entity):
|
|||
@property
|
||||
def unit_of_measurement(self):
|
||||
"""Return the state of the sensor."""
|
||||
return UNIT_PERCENTAGE
|
||||
return PERCENTAGE
|
||||
|
||||
def update(self):
|
||||
"""Communicate with a Lightwave RTF Proxy to get state."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue