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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user