mirror of
https://github.com/home-assistant/core.git
synced 2026-05-08 09:38:58 +01:00
Add more util aliases to import conventions (#136153)
This commit is contained in:
+4
-2
@@ -90,7 +90,7 @@ from homeassistant.helpers.dispatcher import async_dispatcher_send
|
||||
from homeassistant.helpers.translation import _TranslationsCacheData
|
||||
from homeassistant.helpers.typing import ConfigType
|
||||
from homeassistant.setup import async_setup_component
|
||||
from homeassistant.util import dt as dt_util, location
|
||||
from homeassistant.util import dt as dt_util, location as location_util
|
||||
from homeassistant.util.async_ import create_eager_task, get_scheduled_timer_handles
|
||||
from homeassistant.util.json import json_loads
|
||||
|
||||
@@ -250,7 +250,9 @@ def check_real[**_P, _R](func: Callable[_P, Coroutine[Any, Any, _R]]):
|
||||
|
||||
|
||||
# Guard a few functions that would make network connections
|
||||
location.async_detect_location_info = check_real(location.async_detect_location_info)
|
||||
location_util.async_detect_location_info = check_real(
|
||||
location_util.async_detect_location_info
|
||||
)
|
||||
|
||||
|
||||
@pytest.fixture(name="caplog")
|
||||
|
||||
Reference in New Issue
Block a user