Update homeassistant/components/roomba/sensor.py

Co-authored-by: Jan-Philipp Benecke <github@bnck.me>
This commit is contained in:
Xitee
2023-12-29 15:41:27 +01:00
committed by GitHub
parent 4b741183fe
commit 819be6179f

View File

@@ -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,