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

Restore history from bluetooth stack at startup (#78612)

This commit is contained in:
J. Nick Koston
2022-09-17 16:58:19 -05:00
committed by GitHub
parent 13d3f4c3b2
commit 18eef5da1f
16 changed files with 151 additions and 55 deletions

View File

@@ -991,6 +991,8 @@ def mock_bluetooth_adapters():
"""Fixture to mock bluetooth adapters."""
with patch(
"homeassistant.components.bluetooth.util.platform.system", return_value="Linux"
), patch(
"bluetooth_adapters.BlueZDBusObjects", return_value=MagicMock(load=AsyncMock())
), patch(
"bluetooth_adapters.get_bluetooth_adapter_details",
return_value={