From 819be6179f140c155687d8916bbe59f3dba9913f Mon Sep 17 00:00:00 2001 From: Xitee <59659167+Xitee1@users.noreply.github.com> Date: Fri, 29 Dec 2023 15:41:27 +0100 Subject: [PATCH] Update homeassistant/components/roomba/sensor.py Co-authored-by: Jan-Philipp Benecke --- homeassistant/components/roomba/sensor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/roomba/sensor.py b/homeassistant/components/roomba/sensor.py index c02de0229c0..ba7d1cc4281 100644 --- a/homeassistant/components/roomba/sensor.py +++ b/homeassistant/components/roomba/sensor.py @@ -127,7 +127,7 @@ SENSORS: list[RoombaSensorEntityDescription] = [ entity_category=EntityCategory.DIAGNOSTIC, value_fn=lambda self: ( self.run_stats.get("sqft") * 9.29 - if self.run_stats.get("sqft") is not None + if self.run_stats.get("sqft") else None ), suggested_display_precision=0,