Mock habluetooth adapters (#148919)

This commit is contained in:
Joakim Plate
2025-08-12 17:46:31 +02:00
committed by GitHub
parent 89aa349881
commit 98e6e20079

View File

@@ -1817,6 +1817,7 @@ async def mock_enable_bluetooth(
def mock_bluetooth_adapters() -> Generator[None]:
"""Fixture to mock bluetooth adapters."""
with (
patch("habluetooth.util.recover_adapter"),
patch("bluetooth_auto_recovery.recover_adapter"),
patch("bluetooth_adapters.systems.platform.system", return_value="Linux"),
patch("bluetooth_adapters.systems.linux.LinuxAdapters.refresh"),