Use last_changed_timestamp directly in history_stats (#175528)

This commit is contained in:
Franck Nijhof
2026-07-09 12:29:56 +02:00
committed by GitHub
parent bc0412e19c
commit 4a915cc08f
@@ -197,8 +197,7 @@ class HistoryStats:
finally:
self._query_count -= 1
self._history_current_period = [
HistoryState(state.state, state.last_changed.timestamp())
for state in states
HistoryState(state.state, state.last_changed_timestamp) for state in states
]
def _state_changes_during_period(