mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
parent
90dab235f7
commit
23de8d4156
@ -269,7 +269,6 @@ def hass(loop, load_registries, hass_storage, request):
|
|||||||
|
|
||||||
exceptions = []
|
exceptions = []
|
||||||
hass = loop.run_until_complete(async_test_home_assistant(loop, load_registries))
|
hass = loop.run_until_complete(async_test_home_assistant(loop, load_registries))
|
||||||
orig_units = hass.config.units
|
|
||||||
orig_exception_handler = loop.get_exception_handler()
|
orig_exception_handler = loop.get_exception_handler()
|
||||||
loop.set_exception_handler(exc_handle)
|
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
|
# Restore timezone, it is set when creating the hass object
|
||||||
dt_util.DEFAULT_TIME_ZONE = orig_tz
|
dt_util.DEFAULT_TIME_ZONE = orig_tz
|
||||||
# Restore the units as well
|
|
||||||
hass.config.units = orig_units
|
|
||||||
|
|
||||||
for ex in exceptions:
|
for ex in exceptions:
|
||||||
if (
|
if (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user