mirror of
https://github.com/esphome/esphome.git
synced 2025-09-22 13:12:22 +01:00
fixes
This commit is contained in:
@@ -156,3 +156,10 @@ def mock_load_yaml() -> Generator[Any]:
|
||||
# Default return value
|
||||
mock_func.return_value = OrderedDict({"sensor": []})
|
||||
yield mock_func
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def mock_install_meta_finder() -> Generator[Any]:
|
||||
"""Mock loader.install_meta_finder for testing."""
|
||||
with mock.patch("esphome.loader.install_meta_finder") as mock_func:
|
||||
yield mock_func
|
||||
|
Reference in New Issue
Block a user