mirror of
https://github.com/home-assistant/core.git
synced 2025-09-10 15:21:38 +02:00
Mock habluetooth adapters (#148919)
This commit is contained in:
@@ -1817,6 +1817,7 @@ async def mock_enable_bluetooth(
|
|||||||
def mock_bluetooth_adapters() -> Generator[None]:
|
def mock_bluetooth_adapters() -> Generator[None]:
|
||||||
"""Fixture to mock bluetooth adapters."""
|
"""Fixture to mock bluetooth adapters."""
|
||||||
with (
|
with (
|
||||||
|
patch("habluetooth.util.recover_adapter"),
|
||||||
patch("bluetooth_auto_recovery.recover_adapter"),
|
patch("bluetooth_auto_recovery.recover_adapter"),
|
||||||
patch("bluetooth_adapters.systems.platform.system", return_value="Linux"),
|
patch("bluetooth_adapters.systems.platform.system", return_value="Linux"),
|
||||||
patch("bluetooth_adapters.systems.linux.LinuxAdapters.refresh"),
|
patch("bluetooth_adapters.systems.linux.LinuxAdapters.refresh"),
|
||||||
|
Reference in New Issue
Block a user