mirror of
https://github.com/home-assistant/core.git
synced 2026-08-24 10:13:52 -05:00
Correct signature of mock class in test_recovery_from_dbus_restart (#171097)
This commit is contained in:
@@ -216,7 +216,7 @@ async def test_recovery_from_dbus_restart(hass: HomeAssistant) -> None:
|
||||
mock_discovered = []
|
||||
|
||||
class MockBleakScanner:
|
||||
def __init__(self, detection_callback, *args: Any, **kwargs: Any) -> None:
|
||||
def __init__(self, detection_callback=None, *args: Any, **kwargs: Any) -> None:
|
||||
nonlocal _callback
|
||||
_callback = detection_callback
|
||||
|
||||
|
||||
Reference in New Issue
Block a user