From 491e62792bec2a4125a0de26bfe8c88c98f1a1d5 Mon Sep 17 00:00:00 2001 From: Erik Montnemery Date: Thu, 4 Nov 2021 18:35:43 +0100 Subject: [PATCH] Correct rescheduling of ExternalStatisticsTask (#59076) --- homeassistant/components/recorder/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/recorder/__init__.py b/homeassistant/components/recorder/__init__.py index 103435fa519..6a9c53b96ad 100644 --- a/homeassistant/components/recorder/__init__.py +++ b/homeassistant/components/recorder/__init__.py @@ -798,7 +798,7 @@ class Recorder(threading.Thread): if statistics.add_external_statistics(self, metadata, stats): return # Schedule a new statistics task if this one didn't finish - self.queue.put(StatisticsTask(metadata, stats)) + self.queue.put(ExternalStatisticsTask(metadata, stats)) def _process_one_event(self, event): """Process one event."""