Skip to content

Commit

Permalink
Import synthetic home on demand
Browse files Browse the repository at this point in the history
  • Loading branch information
allenporter committed Aug 3, 2024
1 parent 4db199a commit 05ac5a8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions home_assistant_datasets/fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@
# TODO(#12): Support loading from the custom component or core development environment
from pytest_homeassistant_custom_component.common import MockConfigEntry

from custom_components import synthetic_home # noqa: F401

from home_assistant_datasets.data_model import ModelConfig

from . import yaml_loaders
Expand Down Expand Up @@ -81,6 +79,8 @@ async def mock_synthetic_home(
yield None
return

from custom_components import synthetic_home # noqa: F401

config_entry = MockConfigEntry(
domain="synthetic_home", data={"config_filename": "ignored"}
)
Expand Down Expand Up @@ -139,7 +139,7 @@ async def mock_conversation_agent_config_entry(
domain=model_config.domain,
data=model_config.config_entry_data,
options=options,
version=model_config.version or 1
version=model_config.version or 1,
)
config_entry.add_to_hass(hass)
await hass.config_entries.async_setup(config_entry.entry_id)
Expand Down

0 comments on commit 05ac5a8

Please sign in to comment.