Drop UNIT_ prefix for percentage constant (#39383)
This commit is contained in:
1 parent
cdc93d7110
commit
d2b1918e9c
183 files changed
+639
-661
No files matched your search
@@ -3,7 +3,7 @@ from datetime import timedelta
|
||||
from typing import Any, Callable, Dict, List, Optional
|
||||
|
||||
from homeassistant.config_entries import ConfigEntry
|
||||
from homeassistant.const import DEVICE_CLASS_TIMESTAMP, UNIT_PERCENTAGE
|
||||
from homeassistant.const import DEVICE_CLASS_TIMESTAMP, PERCENTAGE
|
||||
from homeassistant.helpers.entity import Entity
|
||||
from homeassistant.helpers.typing import HomeAssistantType
|
||||
from homeassistant.util.dt import utcnow
|
||||
@@ -114,7 +114,7 @@ class IPPMarkerSensor(IPPSensor):
|
||||
icon="mdi:water",
|
||||
key=f"marker_{marker_index}",
|
||||
name=f"{coordinator.data.info.name} {coordinator.data.markers[marker_index].name}",
|
||||
unit_of_measurement=UNIT_PERCENTAGE,
|
||||
unit_of_measurement=PERCENTAGE,
|
||||
)
|
||||
|
||||
@property
|
||||
|
||||
Reference in new issue
Block a user