mirror of
https://github.com/home-assistant/core.git
synced 2025-08-09 15:45:08 +02:00
Update homeassistant/components/roomba/sensor.py
Co-authored-by: Jan-Philipp Benecke <github@bnck.me>
This commit is contained in:
@@ -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
|
||||
),
|
||||
|
Reference in New Issue
Block a user