mirror of
https://github.com/home-assistant/core.git
synced 2025-08-17 19:41:45 +02:00
Correct rescheduling of ExternalStatisticsTask (#59076)
This commit is contained in:
committed by
Paulus Schoutsen
parent
d9d8b538b0
commit
61918e0e44
@@ -793,7 +793,7 @@ class Recorder(threading.Thread):
|
|||||||
if statistics.add_external_statistics(self, metadata, stats):
|
if statistics.add_external_statistics(self, metadata, stats):
|
||||||
return
|
return
|
||||||
# Schedule a new statistics task if this one didn't finish
|
# 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):
|
def _process_one_event(self, event):
|
||||||
"""Process one event."""
|
"""Process one event."""
|
||||||
|
Reference in New Issue
Block a user