Rename 'life' to 'lifetime' in Tuya (#96813)

This commit is contained in:
c0ffeeca7
2023-07-18 09:54:07 +02:00
committed by GitHub
parent 9b29cbd71c
commit 43842e243d

View File

@@ -854,25 +854,25 @@ SENSORS: dict[str, tuple[TuyaSensorEntityDescription, ...]] = {
), ),
TuyaSensorEntityDescription( TuyaSensorEntityDescription(
key=DPCode.DUSTER_CLOTH, key=DPCode.DUSTER_CLOTH,
name="Duster cloth life", name="Duster cloth lifetime",
icon="mdi:ticket-percent-outline", icon="mdi:ticket-percent-outline",
state_class=SensorStateClass.MEASUREMENT, state_class=SensorStateClass.MEASUREMENT,
), ),
TuyaSensorEntityDescription( TuyaSensorEntityDescription(
key=DPCode.EDGE_BRUSH, key=DPCode.EDGE_BRUSH,
name="Side brush life", name="Side brush lifetime",
icon="mdi:ticket-percent-outline", icon="mdi:ticket-percent-outline",
state_class=SensorStateClass.MEASUREMENT, state_class=SensorStateClass.MEASUREMENT,
), ),
TuyaSensorEntityDescription( TuyaSensorEntityDescription(
key=DPCode.FILTER_LIFE, key=DPCode.FILTER_LIFE,
name="Filter life", name="Filter lifetime",
icon="mdi:ticket-percent-outline", icon="mdi:ticket-percent-outline",
state_class=SensorStateClass.MEASUREMENT, state_class=SensorStateClass.MEASUREMENT,
), ),
TuyaSensorEntityDescription( TuyaSensorEntityDescription(
key=DPCode.ROLL_BRUSH, key=DPCode.ROLL_BRUSH,
name="Rolling brush life", name="Rolling brush lifetime",
icon="mdi:ticket-percent-outline", icon="mdi:ticket-percent-outline",
state_class=SensorStateClass.MEASUREMENT, state_class=SensorStateClass.MEASUREMENT,
), ),