mirror of
https://github.com/home-assistant/core.git
synced 2026-10-06 00:39:20 +01:00
Reset the threading.local _hass object in tests (#101700)
This commit is contained in:
1 parent
f7292d5b00
commit
8a83e810b8
1 file changed
+3
@@ -559,6 +559,9 @@ async def hass(
|
||||
# Restore timezone, it is set when creating the hass object
|
||||
dt_util.DEFAULT_TIME_ZONE = orig_tz
|
||||
|
||||
# Reset the _Hass threading.local object
|
||||
ha._hass.__dict__.clear()
|
||||
|
||||
for ex in exceptions:
|
||||
if (
|
||||
request.module.__name__,
|
||||
|
||||
Reference in new issue
Block a user