mirror of
https://github.com/home-assistant/core.git
synced 2026-02-22 10:55:50 +00:00
25 lines
540 B
Python
25 lines
540 B
Python
"""Fixtures for EnOcean integration tests."""
|
|
|
|
from typing import Final
|
|
|
|
import pytest
|
|
|
|
from homeassistant.components.enocean.const import DOMAIN
|
|
from homeassistant.const import CONF_DEVICE
|
|
|
|
from tests.common import MockConfigEntry
|
|
|
|
ENTRY_CONFIG: Final[dict[str, str]] = {
|
|
CONF_DEVICE: "/dev/ttyUSB0",
|
|
}
|
|
|
|
|
|
@pytest.fixture
|
|
def mock_config_entry() -> MockConfigEntry:
|
|
"""Return the default mocked config entry."""
|
|
return MockConfigEntry(
|
|
domain=DOMAIN,
|
|
unique_id="device_chip_id",
|
|
data=ENTRY_CONFIG,
|
|
)
|