Use UnitOfTime in integrations (t-z) (#84291)
This commit is contained in:
parent
1f3da9cf1a
commit
fba13dcc90
22 changed files with 50 additions and 56 deletions
|
@ -15,10 +15,10 @@ from homeassistant.components.sensor import (
|
|||
from homeassistant.config_entries import ConfigEntry
|
||||
from homeassistant.const import (
|
||||
PERCENTAGE,
|
||||
TIME_MINUTES,
|
||||
UnitOfElectricCurrent,
|
||||
UnitOfElectricPotential,
|
||||
UnitOfPower,
|
||||
UnitOfTime,
|
||||
)
|
||||
from homeassistant.core import HomeAssistant, callback
|
||||
from homeassistant.helpers.dispatcher import async_dispatcher_connect
|
||||
|
@ -437,7 +437,7 @@ SENSORS: dict[str, tuple[TuyaSensorEntityDescription, ...]] = {
|
|||
TuyaSensorEntityDescription(
|
||||
key=DPCode.REMAIN_TIME,
|
||||
name="Remaining time",
|
||||
native_unit_of_measurement=TIME_MINUTES,
|
||||
native_unit_of_measurement=UnitOfTime.MINUTES,
|
||||
icon="mdi:timer",
|
||||
),
|
||||
),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue