Fix recorder purging by batch processing purges (#37140)

This commit is contained in:
Franck Nijhof authored and Paulus Schoutsen committed 2020-06-26 21:26:33 +00:00
1 parent 748f1c3607
commit 976cbdd2aa
5 files changed
+66 -17

No files matched your search

+1 -1
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(