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