1
0
mirror of https://github.com/home-assistant/core.git synced 2026-05-23 08:50:09 +01:00
Files
core/tests/components
unfug-at-github c5ed148c52 Fix race condition in statistics that created spikes (#129066)
* fixed race condition and added test case for updates before db load

* removed duplicated code

* improved comments, removed superfluous errors / assertions

* allow both possible outcomes of race condition

* use approx for float comparison

* Update tests/components/statistics/test_sensor.py

Co-authored-by: Erik Montnemery <erik@montnemery.com>

* force new state before database load in race condition test

---------

Co-authored-by: Erik Montnemery <erik@montnemery.com>
2024-10-26 09:23:47 +02:00
..
2024-10-08 18:39:04 +02:00
2024-10-24 14:32:48 +02:00
2024-10-08 18:39:04 +02:00
2024-10-08 18:39:04 +02:00
2024-10-12 02:20:54 +02:00
2024-10-08 18:39:04 +02:00
2024-10-08 18:39:04 +02:00
2024-10-26 01:47:27 +02:00
2024-10-08 18:39:04 +02:00
2024-10-20 22:17:00 +02:00
2024-10-26 01:47:27 +02:00
2024-10-26 01:47:27 +02:00
2024-09-30 14:43:23 +02:00
2024-10-08 18:39:04 +02:00
2024-10-26 01:47:27 +02:00
2024-10-24 12:45:25 +02:00
2024-10-08 18:39:04 +02:00
2024-10-25 20:45:55 +02:00
2024-10-26 01:47:27 +02:00
2024-10-05 12:13:52 +02:00
2024-10-08 18:39:04 +02:00
2024-10-08 18:39:04 +02:00
2024-10-17 10:41:57 +02:00
2024-10-08 18:39:04 +02:00