From c80d1ba003e54e64747bd4a46c67d6631fc6dbe9 Mon Sep 17 00:00:00 2001 From: Erik Montnemery Date: Tue, 19 May 2026 07:48:12 +0200 Subject: [PATCH] Correct signature of mock class in test_recovery_from_dbus_restart (#171097) --- tests/components/bluetooth/test_scanner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/components/bluetooth/test_scanner.py b/tests/components/bluetooth/test_scanner.py index b22a4966309b..793d673dd390 100644 --- a/tests/components/bluetooth/test_scanner.py +++ b/tests/components/bluetooth/test_scanner.py @@ -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