mirror of
https://github.com/home-assistant/core.git
synced 2025-07-17 10:17:09 +00:00
Fix unnecessary-lambda warnings in tests (#119563)
This commit is contained in:
parent
4af3879fc2
commit
610f21c4a6
@ -98,7 +98,7 @@ def mock_bypass_throttle():
|
|||||||
"""Fixture to bypass the throttle decorator in __init__."""
|
"""Fixture to bypass the throttle decorator in __init__."""
|
||||||
with patch(
|
with patch(
|
||||||
"homeassistant.components.home_connect.update_all_devices",
|
"homeassistant.components.home_connect.update_all_devices",
|
||||||
side_effect=lambda x, y: bypass_throttle(x, y),
|
side_effect=bypass_throttle,
|
||||||
):
|
):
|
||||||
yield
|
yield
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user