mirror of
https://github.com/home-assistant/core.git
synced 2025-08-13 01:25:23 +02:00
Use parentheses for multi-line lambda
This commit is contained in:
@@ -125,9 +125,11 @@ 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=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
|
if self.run_stats.get("sqft") is not None
|
||||||
else None,
|
else None
|
||||||
|
),
|
||||||
suggested_display_precision=0,
|
suggested_display_precision=0,
|
||||||
entity_registry_enabled_default=False,
|
entity_registry_enabled_default=False,
|
||||||
),
|
),
|
||||||
|
Reference in New Issue
Block a user