From 63e13952b0e8f0600d703a4cf49005e6fa232673 Mon Sep 17 00:00:00 2001 From: Xitee Date: Fri, 29 Dec 2023 12:36:57 +0100 Subject: [PATCH] Use parentheses for multi-line lambda --- homeassistant/components/roomba/sensor.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/roomba/sensor.py b/homeassistant/components/roomba/sensor.py index b167078c5f2..d99c657d7ad 100644 --- a/homeassistant/components/roomba/sensor.py +++ b/homeassistant/components/roomba/sensor.py @@ -125,9 +125,11 @@ SENSORS: list[RoombaSensorEntityDescription] = [ icon="mdi:texture-box", native_unit_of_measurement=AREA_SQUARE_METERS, entity_category=EntityCategory.DIAGNOSTIC, - value_fn=lambda self: self.run_stats.get("sqft") * 9.29 - if self.run_stats.get("sqft") is not None - else None, + value_fn=( + lambda self: self.run_stats.get("sqft") * 9.29 + if self.run_stats.get("sqft") is not None + else None + ), suggested_display_precision=0, entity_registry_enabled_default=False, ),