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

View File

@ -42,7 +42,7 @@ from homeassistant.helpers.script import (
)
from homeassistant.helpers.service import async_get_all_descriptions
from homeassistant.setup import async_setup_component
from homeassistant.util import yaml
from homeassistant.util import yaml as yaml_util
import homeassistant.util.dt as dt_util
from tests.common import (
@ -1722,7 +1722,7 @@ async def test_blueprint_script_fails_substitution(
"""Test blueprint script with bad inputs."""
with patch(
"homeassistant.components.blueprint.models.BlueprintInputs.async_substitute",
side_effect=yaml.UndefinedSubstitution("blah"),
side_effect=yaml_util.UndefinedSubstitution("blah"),
):
assert await async_setup_component(
hass,