Skip to content

Commit c31e58e

Browse files
author
autoruff
committed
fixup: improve_group Python code fixed using ruff
1 parent 4055020 commit c31e58e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

plugwise/helper.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -384,13 +384,11 @@ def _collect_group_sensors(
384384
measurements: dict[str, DATA | UOM],
385385
) -> None:
386386
"""Collect group sensors."""
387-
if (
388-
group := self._domain_objects.find(f'./group[@id="{entity_id}"]')
389-
) is None:
387+
if (group := self._domain_objects.find(f'./group[@id="{entity_id}"]')) is None:
390388
return None
391389

392390
for measurement, attrs in measurements.items():
393-
locator = f'.//logs/point_log[type="{measurement}"]/period/measurement'
391+
locator = f'.//logs/point_log[type="{measurement}"]/period/measurement'
394392
if (group_meas_loc := group.find(locator)) is None:
395393
return
396394

0 commit comments

Comments
 (0)