Make recorder execute avoid native conversion by default (#36938)

This commit is contained in:
J. Nick Koston 2020-06-21 23:58:57 -05:00 committed by GitHub
parent f4b8a95205
commit edad387b12
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 42 additions and 35 deletions

View file

@ -332,7 +332,7 @@ class StatisticsSensor(Entity):
query = query.order_by(States.last_updated.desc()).limit(
self._sampling_size
)
states = execute(query)
states = execute(query, to_native=True, validate_entity_ids=False)
for state in reversed(states):
self._add_state_to_queue(state)