mirror of
https://github.com/home-assistant/core.git
synced 2025-08-10 16:15: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",
|
icon="mdi:texture-box",
|
||||||
native_unit_of_measurement=AREA_SQUARE_METERS,
|
native_unit_of_measurement=AREA_SQUARE_METERS,
|
||||||
entity_category=EntityCategory.DIAGNOSTIC,
|
entity_category=EntityCategory.DIAGNOSTIC,
|
||||||
value_fn=(
|
value_fn=lambda self: (
|
||||||
lambda self: self.run_stats.get("sqft") * 9.29
|
self.run_stats.get("sqft") * 9.29
|
||||||
if self.run_stats.get("sqft") is not None
|
if self.run_stats.get("sqft") is not None
|
||||||
else None
|
else None
|
||||||
),
|
),
|
||||||
|
Reference in New Issue
Block a user