1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

Add a context variable holding a HomeAssistant reference (#76303)

* Add a context variable holding a HomeAssistant reference

* Move variable setup and update test

* Refactor

* Revert "Refactor"

This reverts commit 346d005ee6.

* Set context variable when creating HomeAssistant object

* Update docstring

* Update docstring

Co-authored-by: jbouwh <jan@jbsoft.nl>
This commit is contained in:
Erik Montnemery
2022-08-22 15:58:01 +02:00
committed by GitHub
parent 58b9785485
commit 61ff1b786b
2 changed files with 23 additions and 0 deletions

View File

@@ -501,6 +501,8 @@ async def test_setup_hass(
assert len(mock_ensure_config_exists.mock_calls) == 1
assert len(mock_process_ha_config_upgrade.mock_calls) == 1
assert hass == core.async_get_hass()
async def test_setup_hass_takes_longer_than_log_slow_startup(
mock_enable_logging,