mirror of
https://github.com/home-assistant/core.git
synced 2025-07-28 07:37:34 +00:00
Remove unnecessary thread_ident assignment (#8194)
* Remove mocking of _thread_ident * Re-add run_loop thread_ident assignment
This commit is contained in:
parent
4ca5ed25bc
commit
8358542ce0
@ -113,8 +113,6 @@ def get_test_home_assistant():
|
|||||||
@asyncio.coroutine
|
@asyncio.coroutine
|
||||||
def async_test_home_assistant(loop):
|
def async_test_home_assistant(loop):
|
||||||
"""Return a Home Assistant object pointing at test config dir."""
|
"""Return a Home Assistant object pointing at test config dir."""
|
||||||
loop._thread_ident = threading.get_ident()
|
|
||||||
|
|
||||||
hass = ha.HomeAssistant(loop)
|
hass = ha.HomeAssistant(loop)
|
||||||
INSTANCES.append(hass)
|
INSTANCES.append(hass)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user