Add Estimated Database Size to the recorder system health (#71463)

This commit is contained in:
J. Nick Koston
2022-05-07 23:02:54 -05:00
committed by GitHub
parent 49d13b9981
commit a8aa0e1cca
17 changed files with 200 additions and 67 deletions

View File

@@ -1440,9 +1440,7 @@ async def test_database_connection_keep_alive(
caplog: pytest.LogCaptureFixture,
):
"""Test we keep alive socket based dialects."""
with patch(
"homeassistant.components.recorder.Recorder.using_sqlite", return_value=False
):
with patch("homeassistant.components.recorder.Recorder.dialect_name"):
instance = await async_setup_recorder_instance(hass)
# We have to mock this since we don't have a mock
# MySQL server available in tests.