Enable ruff rule FURB192 (sorted-min-max) (#177544)

This commit is contained in:
Robert Resch
2026-07-29 15:12:20 +02:00
committed by GitHub
parent 2f921e4238
commit 7a8f476a8f
2 changed files with 1 additions and 4 deletions
@@ -189,9 +189,7 @@ class WithingsSleepDataUpdateCoordinator(
if not response:
return None
return sorted(
response, key=lambda sleep_summary: sleep_summary.end_date, reverse=True
)[0]
return max(response, key=lambda sleep_summary: sleep_summary.end_date)
class WithingsBedPresenceDataUpdateCoordinator(WithingsDataUpdateCoordinator[None]):
-1
View File
@@ -784,7 +784,6 @@ ignore = [
# Disabled to implement in follow up PRs after ruff 0.16 bump
"ISC004",
"LOG004",
"FURB192",
]
[tool.ruff.lint.flake8-import-conventions.extend-aliases]