Fix flaky history stats test (#115824)

This commit is contained in:
J. Nick Koston 2024-04-21 01:08:40 +02:00 committed by GitHub
parent 7d386b0d26
commit 29bfed72f7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1376,9 +1376,12 @@ async def test_measure_cet(recorder_mock: Recorder, hass: HomeAssistant) -> None
]
}
with patch(
"homeassistant.components.recorder.history.state_changes_during_period",
_fake_states,
with (
patch(
"homeassistant.components.recorder.history.state_changes_during_period",
_fake_states,
),
freeze_time(start_time),
):
await async_setup_component(
hass,