From faa67a40c453e7fbef9e3e8ff8af7ab1b974a697 Mon Sep 17 00:00:00 2001 From: c0ffeeca7 <38767475+c0ffeeca7@users.noreply.github.com> Date: Tue, 18 Jul 2023 12:24:02 +0200 Subject: [PATCH] =?UTF-8?q?Rename=20'life'=20to=20'lifetime'=20in=20tr?= =?UTF-8?q?=C3=A5dfri=20(#96818)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- homeassistant/components/tradfri/sensor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/tradfri/sensor.py b/homeassistant/components/tradfri/sensor.py index 1b3839ce2d7..3eb4d72effd 100644 --- a/homeassistant/components/tradfri/sensor.py +++ b/homeassistant/components/tradfri/sensor.py @@ -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(