Correct check for removed index in recorder test (#125323)

This commit is contained in:
Erik Montnemery 2024-09-06 07:21:41 +02:00 committed by GitHub
parent 60b0f0dc53
commit 0ca0836e83
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -335,7 +335,7 @@ async def test_migrate_events_context_ids(
# Check the index which will be removed by the migrator no longer exists
with session_scope(hass=hass) as session:
assert get_index_by_name(session, "states", "ix_states_context_id") is None
assert get_index_by_name(session, "events", "ix_events_context_id") is None
@pytest.mark.parametrize("enable_migrate_context_ids", [True])