core/homeassistant
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
..
auth
backports
brands Add husqvarna automower ble integration (#108326) 2024-10-25 16:54:02 +02:00
components Fix race condition in statistics that created spikes (#129066) 2024-10-26 09:23:47 +02:00
generated Add husqvarna automower ble integration (#108326) 2024-10-25 16:54:02 +02:00
helpers Move core config class to core_config.py (#129163) 2024-10-26 07:00:31 +02:00
scripts
util Use webrtc-models package (#129032) 2024-10-25 10:18:55 +02:00
__init__.py
__main__.py
block_async_io.py
bootstrap.py Move core config functionality to its own module (#129065) 2024-10-24 13:34:51 +02:00
config.py Move core config functionality to its own module (#129065) 2024-10-24 13:34:51 +02:00
config_entries.py Use reauth helpers in google_mail (#128584) 2024-10-18 09:04:55 +02:00
const.py Move core config class to core_config.py (#129163) 2024-10-26 07:00:31 +02:00
core.py Move core config class to core_config.py (#129163) 2024-10-26 07:00:31 +02:00
core_config.py Move core config class to core_config.py (#129163) 2024-10-26 07:00:31 +02:00
data_entry_flow.py
exceptions.py
loader.py Simplify custom component loading (#128813) 2024-10-20 09:47:27 +02:00
package_constraints.txt Bump anyio to 4.6.2.post1 (#129199) 2024-10-26 07:06:27 +02:00
py.typed
requirements.py
runner.py
setup.py
strings.json