Convert test helpers to get hass instance to contextmanagers (#109990)
* Convert get_test_home_assistant helper to contextmanager * Convert async_test_home_assistant helper to contextmanager * Move timezone reset to async_test_home_assistant helper
This commit is contained in:
parent
3342e6ddbd
commit
2ef2172b01
17 changed files with 750 additions and 784 deletions
|
@ -36,8 +36,6 @@ from .common import async_wait_recording_done, create_engine_test
|
|||
|
||||
from tests.common import async_fire_time_changed
|
||||
|
||||
ORIG_TZ = dt_util.DEFAULT_TIME_ZONE
|
||||
|
||||
|
||||
def _get_native_states(hass, entity_id):
|
||||
with session_scope(hass=hass, read_only=True) as session:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue