diff --git a/homeassistant/components/recorder/__init__.py b/homeassistant/components/recorder/__init__.py index 21acc183e50c23..6227f680df9274 100644 --- a/homeassistant/components/recorder/__init__.py +++ b/homeassistant/components/recorder/__init__.py @@ -794,7 +794,7 @@ def _run_external_statistics(self, metadata, stats): 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."""