From 4b741183fef0d084c4041948c08ee3a1b34025d3 Mon Sep 17 00:00:00 2001 From: Xitee <59659167+Xitee1@users.noreply.github.com> Date: Fri, 29 Dec 2023 15:24:12 +0100 Subject: [PATCH] Update homeassistant/components/roomba/sensor.py Co-authored-by: Jan-Philipp Benecke --- homeassistant/components/roomba/sensor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/roomba/sensor.py b/homeassistant/components/roomba/sensor.py index d99c657d7ad..c02de0229c0 100644 --- a/homeassistant/components/roomba/sensor.py +++ b/homeassistant/components/roomba/sensor.py @@ -125,8 +125,8 @@ 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 + value_fn=lambda self: ( + self.run_stats.get("sqft") * 9.29 if self.run_stats.get("sqft") is not None else None ),