Rename 'life' to 'lifetime' in trådfri (#96818)

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.
This commit is contained in:
c0ffeeca7 2023-07-18 12:24:02 +02:00 committed by GitHub
parent 5f0e5b7e0c
commit faa67a40c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -65,7 +65,7 @@ def _get_air_quality(device: Device) -> int | None:
def _get_filter_time_left(device: Device) -> int: def _get_filter_time_left(device: Device) -> int:
"""Fetch the filter's remaining life (in hours).""" """Fetch the filter's remaining lifetime (in hours)."""
assert device.air_purifier_control is not None assert device.air_purifier_control is not None
return round( return round(
cast( cast(