parent
90dab235f7
commit
23de8d4156
|
@ -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 (
|
||||
|
|
Loading…
Reference in New Issue