Improve purge performance for non-sqlite databases (#70576)

This commit is contained in:
J. Nick Koston
2022-04-26 10:11:57 -10:00
committed by GitHub
parent 1c4a785fb3
commit 6ce768465f
6 changed files with 112 additions and 54 deletions

View File

@@ -1395,7 +1395,7 @@ async def test_database_connection_keep_alive(
):
"""Test we keep alive socket based dialects."""
with patch(
"homeassistant.components.recorder.Recorder._using_sqlite", return_value=False
"homeassistant.components.recorder.Recorder.using_sqlite", return_value=False
):
instance = await async_setup_recorder_instance(hass)
# We have to mock this since we don't have a mock