Revert changes to test/conftest.py from #70300 (#70385)

pull/70391/head
J. Nick Koston 2022-04-21 10:49:47 -10:00 committed by GitHub
parent 90dab235f7
commit 23de8d4156
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 3 deletions

View File

@ -269,7 +269,6 @@ def hass(loop, load_registries, hass_storage, request):
exceptions = []
hass = loop.run_until_complete(async_test_home_assistant(loop, load_registries))
orig_units = hass.config.units
orig_exception_handler = loop.get_exception_handler()
loop.set_exception_handler(exc_handle)
@ -279,8 +278,6 @@ def hass(loop, load_registries, hass_storage, request):
# Restore timezone, it is set when creating the hass object
dt_util.DEFAULT_TIME_ZONE = orig_tz
# Restore the units as well
hass.config.units = orig_units
for ex in exceptions:
if (