| 123456789101112131415161718192021222324 |
- import pytest
- from pytest_homeassistant_custom_component.common import MockConfigEntry
- from custom_components.room_cal_ha.const import (
- CONF_ROOM_NAME,
- CONF_SYNC_MODE,
- DOMAIN,
- SYNC_MODE_MANUAL,
- )
- @pytest.fixture(autouse=True)
- def auto_enable_custom_integrations(enable_custom_integrations):
- yield
- @pytest.fixture
- def mock_entry():
- return MockConfigEntry(
- domain=DOMAIN,
- title="Beach House",
- data={CONF_ROOM_NAME: "Beach House"},
- options={CONF_SYNC_MODE: SYNC_MODE_MANUAL},
- )
|