1
0
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:
epenet
2025-01-21 15:58:23 +01:00
committed by GitHub
parent 3b79ded0b0
commit b11b36b523
40 changed files with 134 additions and 114 deletions
+4 -2
View File
@@ -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")