1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 12:59:34 +00:00

Add diagnostics to bluetooth (#77393)

This commit is contained in:
J. Nick Koston
2022-08-27 16:41:49 -05:00
committed by GitHub
parent 15ad10643a
commit 8e88e039f7
10 changed files with 213 additions and 5 deletions

View File

@@ -53,6 +53,11 @@ def one_adapter_fixture():
def two_adapters_fixture():
"""Fixture that mocks two adapters on Linux."""
with patch(
"homeassistant.components.bluetooth.platform.system", return_value="Linux"
), patch(
"homeassistant.components.bluetooth.scanner.platform.system",
return_value="Linux",
), patch(
"homeassistant.components.bluetooth.util.platform.system", return_value="Linux"
), patch(
"bluetooth_adapters.get_bluetooth_adapter_details",