mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 16:57:53 +00:00
ps: Fix recorder.py fetching wrong run information
This commit is contained in:
parent
70bce24b0a
commit
5a0251c3cd
@ -86,7 +86,7 @@ def run_information(point_in_time=None):
|
||||
return RecorderRun()
|
||||
|
||||
run = _INSTANCE.query(
|
||||
"SELECT * FROM recorder_runs WHERE start>? AND END IS NULL OR END<?",
|
||||
"SELECT * FROM recorder_runs WHERE start<? AND END>?",
|
||||
(point_in_time, point_in_time), return_value=RETURN_ONE_ROW)
|
||||
|
||||
return RecorderRun(run) if run else None
|
||||
|
Loading…
x
Reference in New Issue
Block a user