Fix unnecessary-lambda warnings in tests (#119563)

This commit is contained in:
epenet 2024-06-13 08:56:14 +02:00 committed by GitHub
parent 4af3879fc2
commit 610f21c4a6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -98,7 +98,7 @@ def mock_bypass_throttle():
"""Fixture to bypass the throttle decorator in __init__."""
with patch(
"homeassistant.components.home_connect.update_all_devices",
side_effect=lambda x, y: bypass_throttle(x, y),
side_effect=bypass_throttle,
):
yield