1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

Stub finding custom integrations in tests (#43692)

This commit is contained in:
Paulus Schoutsen
2020-11-27 12:53:16 +01:00
committed by GitHub
parent 897ff31ffe
commit ea55051161
3 changed files with 10 additions and 2 deletions

View File

@@ -537,3 +537,9 @@ def legacy_patchable_time():
async_track_utc_time_change,
):
yield
@pytest.fixture
def enable_custom_integrations(hass):
"""Enable custom integrations defined in the test dir."""
hass.data.pop(loader.DATA_CUSTOM_COMPONENTS)