From 022deb20fd0aaa00507a218e42388fd501e8446e Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sun, 24 Apr 2022 11:34:00 -1000 Subject: [PATCH] Fix history not including start time state (#70447) --- homeassistant/components/recorder/history.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/recorder/history.py b/homeassistant/components/recorder/history.py index 53564993da9..6731e409f65 100644 --- a/homeassistant/components/recorder/history.py +++ b/homeassistant/components/recorder/history.py @@ -456,7 +456,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