Migrate Tuya translations (#83105)
* Migrate Tuya translations * Don't use DPCode as translation key
This commit is contained in:
parent
4edebacba5
commit
fc93521e02
7 changed files with 429 additions and 220 deletions
|
@ -34,7 +34,6 @@ from .const import (
|
|||
TUYA_DISCOVERY_NEW,
|
||||
DPCode,
|
||||
DPType,
|
||||
TuyaDeviceClass,
|
||||
UnitOfMeasurement,
|
||||
)
|
||||
|
||||
|
@ -179,7 +178,6 @@ SENSORS: dict[str, tuple[TuyaSensorEntityDescription, ...]] = {
|
|||
TuyaSensorEntityDescription(
|
||||
key=DPCode.STATUS,
|
||||
name="Status",
|
||||
device_class=TuyaDeviceClass.STATUS,
|
||||
),
|
||||
),
|
||||
# CO2 Detector
|
||||
|
@ -434,7 +432,7 @@ SENSORS: dict[str, tuple[TuyaSensorEntityDescription, ...]] = {
|
|||
TuyaSensorEntityDescription(
|
||||
key=DPCode.STATUS,
|
||||
name="Status",
|
||||
device_class=TuyaDeviceClass.STATUS,
|
||||
translation_key="status",
|
||||
),
|
||||
TuyaSensorEntityDescription(
|
||||
key=DPCode.REMAIN_TIME,
|
||||
|
@ -973,7 +971,7 @@ SENSORS: dict[str, tuple[TuyaSensorEntityDescription, ...]] = {
|
|||
key=DPCode.AIR_QUALITY,
|
||||
name="Air quality",
|
||||
icon="mdi:air-filter",
|
||||
device_class=TuyaDeviceClass.AIR_QUALITY,
|
||||
translation_key="air_quality",
|
||||
),
|
||||
),
|
||||
# Fan
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue