Rename homekit "Filter Life" sensor to "Filter lifetime" (#96821)
* String review: rename 'life' to 'lifetime' - The term life, such as in 'filter life' can be ambiguous. - Renamed to 'lifetime', as quite a few integrations use the term 'lifetime' to express this concept - Improves consistency and should be easier to understand. * HomeKit: adapt test case to reflect string change * Fix test case failure caused by string rename: first steppull/96845/head
parent
0bdfb95d1d
commit
67eeed6703
|
@ -333,7 +333,7 @@ SIMPLE_SENSOR: dict[str, HomeKitSensorEntityDescription] = {
|
|||
),
|
||||
CharacteristicsTypes.FILTER_LIFE_LEVEL: HomeKitSensorEntityDescription(
|
||||
key=CharacteristicsTypes.FILTER_LIFE_LEVEL,
|
||||
name="Filter Life",
|
||||
name="Filter lifetime",
|
||||
state_class=SensorStateClass.MEASUREMENT,
|
||||
native_unit_of_measurement=PERCENTAGE,
|
||||
),
|
||||
|
|
|
@ -60,8 +60,8 @@ async def test_airversa_ap2_setup(hass: HomeAssistant) -> None:
|
|||
capabilities={"state_class": SensorStateClass.MEASUREMENT},
|
||||
),
|
||||
EntityTestInfo(
|
||||
entity_id="sensor.airversa_ap2_1808_filter_life",
|
||||
friendly_name="Airversa AP2 1808 Filter Life",
|
||||
entity_id="sensor.airversa_ap2_1808_filter_lifetime",
|
||||
friendly_name="Airversa AP2 1808 Filter lifetime",
|
||||
unique_id="00:00:00:00:00:00_1_32896_32900",
|
||||
state="100.0",
|
||||
capabilities={"state_class": SensorStateClass.MEASUREMENT},
|
||||
|
|
Loading…
Reference in New Issue