Fix recorder purging by batch processing purges (#37140)

This commit is contained in:
Franck Nijhof authored and Paulus Schoutsen committed 2020-06-26 21:26:33 +00:00
1 parent 748f1c3607
commit 976cbdd2aa
5 files changed
+66 -17

No files matched your search

+2 -2
View File
@@ -64,7 +64,7 @@ class Events(Base): # type: ignore
context_parent_id=event.context.parent_id,
)
def to_native(self):
def to_native(self, validate_entity_id=True):
"""Convert to a natve HA Event."""
context = Context(
id=self.context_id,
@@ -183,7 +183,7 @@ class RecorderRuns(Base): # type: ignore
return [row[0] for row in query]
def to_native(self):
def to_native(self, validate_entity_id=True):
"""Return self, native format is this model."""
return self