Fix history not including start time state (#70447)

This commit is contained in:
J. Nick Koston 2022-04-24 11:34:00 -10:00 committed by Paulus Schoutsen
parent c7ff4baa6b
commit 6f6b16b410

View file

@ -395,7 +395,7 @@ def _get_states_with_session(
if (
run is None
and (run := (recorder.run_information_from_instance(hass, utc_point_in_time)))
and (run := (recorder.run_information_with_session(session, utc_point_in_time)))
is None
):
# History did not run before utc_point_in_time