hass-core/tests/components/thread/conftest.py
Erik Montnemery 9ef86b7b66
Add Thread integration (#86283)
* Add Thread integration

* Address review comments

* Address review comments
2023-01-23 10:27:24 -05:00

22 lines
556 B
Python

"""Test fixtures for the Thread integration."""
import pytest
from homeassistant.components import thread
from tests.common import MockConfigEntry
CONFIG_ENTRY_DATA = {}
@pytest.fixture(name="thread_config_entry")
async def thread_config_entry_fixture(hass):
"""Mock Thread config entry."""
config_entry = MockConfigEntry(
data=CONFIG_ENTRY_DATA,
domain=thread.DOMAIN,
options={},
title="Thread",
)
config_entry.add_to_hass(hass)
assert await hass.config_entries.async_setup(config_entry.entry_id)