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

Fix recorder purging by batch processing purges (#37140)

This commit is contained in:
Franck Nijhof
2020-06-26 19:27:45 +02:00
committed by GitHub
parent a4501b93c4
commit 7d74b74570
5 changed files with 66 additions and 17 deletions

View File

@@ -317,7 +317,7 @@ def test_auto_purge(hass_recorder):
test_time = tz.localize(datetime(2020, 1, 1, 4, 12, 0))
with patch(
"homeassistant.components.recorder.purge.purge_old_data"
"homeassistant.components.recorder.purge.purge_old_data", return_value=True
) as purge_old_data:
for delta in (-1, 0, 1):
hass.bus.fire(