From 397bde4652bafefd611243455cfc0c578814ed32 Mon Sep 17 00:00:00 2001 From: Erik Montnemery Date: Fri, 15 Mar 2024 21:20:39 +0100 Subject: [PATCH] Add missing continue in legacy recorder history function (#113535) Co-authored-by: Jan Bouwhuis --- homeassistant/components/recorder/history/legacy.py | 1 + 1 file changed, 1 insertion(+) diff --git a/homeassistant/components/recorder/history/legacy.py b/homeassistant/components/recorder/history/legacy.py index 6a66599e11b..ad9505e1af2 100644 --- a/homeassistant/components/recorder/history/legacy.py +++ b/homeassistant/components/recorder/history/legacy.py @@ -814,6 +814,7 @@ def _sorted_states_to_dict( } ) prev_state = state + continue for row in group: if (state := row[state_idx]) != prev_state: