mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
Fix flaky test in history stats (#131869)
This commit is contained in:
parent
18db16b82c
commit
889ac1552b
@ -459,7 +459,11 @@ async def test_async_on_entire_period(
|
||||
def _fake_states(*args, **kwargs):
|
||||
return {
|
||||
"binary_sensor.test_on_id": [
|
||||
ha.State("binary_sensor.test_on_id", "on", last_changed=start_time),
|
||||
ha.State(
|
||||
"binary_sensor.test_on_id",
|
||||
"on",
|
||||
last_changed=(start_time - timedelta(seconds=10)),
|
||||
),
|
||||
ha.State("binary_sensor.test_on_id", "on", last_changed=t0),
|
||||
ha.State("binary_sensor.test_on_id", "on", last_changed=t1),
|
||||
ha.State("binary_sensor.test_on_id", "on", last_changed=t2),
|
||||
|
Loading…
x
Reference in New Issue
Block a user