mirror of
https://github.com/esphome/esphome.git
synced 2025-09-22 21:22:22 +01:00
fixes
This commit is contained in:
@@ -18,6 +18,7 @@ from esphome.const import (
|
|||||||
PlatformFramework,
|
PlatformFramework,
|
||||||
)
|
)
|
||||||
from esphome.types import ConfigType
|
from esphome.types import ConfigType
|
||||||
|
from esphome.util import OrderedDict
|
||||||
|
|
||||||
# Add package root to python path
|
# Add package root to python path
|
||||||
here = Path(__file__).parent
|
here = Path(__file__).parent
|
||||||
@@ -150,7 +151,6 @@ def mock_clone_or_update() -> Generator[Any]:
|
|||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
def mock_load_yaml() -> Generator[Any]:
|
def mock_load_yaml() -> Generator[Any]:
|
||||||
"""Mock yaml_util.load_yaml for testing."""
|
"""Mock yaml_util.load_yaml for testing."""
|
||||||
from esphome.util import OrderedDict
|
|
||||||
|
|
||||||
with mock.patch("esphome.yaml_util.load_yaml") as mock_func:
|
with mock.patch("esphome.yaml_util.load_yaml") as mock_func:
|
||||||
# Default return value
|
# Default return value
|
||||||
|
Reference in New Issue
Block a user