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,