mirror of
https://github.com/home-assistant/core.git
synced 2025-12-26 22:18:40 +00:00
* 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>