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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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={