mirror of
https://github.com/home-assistant/core.git
synced 2025-07-29 16:17:20 +00:00
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:
parent
5f0e5b7e0c
commit
faa67a40c4
@ -65,7 +65,7 @@ def _get_air_quality(device: Device) -> int | None:
|
||||
|
||||
|
||||
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
|
||||
return round(
|
||||
cast(
|
||||
|
Loading…
x
Reference in New Issue
Block a user