hass-core/tests/components/sql
J. Nick Koston 4366f83ac8
Restore use of local timezone for MariaDB/MySQL in SQL integration (#91313)
* Use local timezone for recorder connection

The fix in #90335 had an unexpected side effect of
using UTC for the timezone since all recorder operations
use UTC. Since only sqlite much use the database executor
we can use a seperate connection pool which uses local time

This also ensures that the engines are disposed of
when Home Assistant is shutdown as previously we
did not cleanly disconnect

* coverage

* fix unclean shutdown in config flow

* tweaks
2023-04-12 20:24:55 -04:00
..
__init__.py Fix false positive in SQL sensor full table scan check (#91134) 2023-04-09 19:45:08 -10:00
test_config_flow.py Default to recorder db for SQL integration (#85436) 2023-03-13 17:41:32 -10:00
test_init.py Default to recorder db for SQL integration (#85436) 2023-03-13 17:41:32 -10:00
test_sensor.py Restore use of local timezone for MariaDB/MySQL in SQL integration (#91313) 2023-04-12 20:24:55 -04:00
test_util.py Add freezer to known test fixtures in pylint (#89825) 2023-03-16 22:39:41 -04:00