| 12345678910111213141516171819202122232425262728 |
- import pytest
- from pytest_homeassistant_custom_component.common import MockConfigEntry
- from custom_components.room_cal_ha.const import (
- CONF_CALDAV_ENABLED,
- CONF_CURRENT_NAME,
- CONF_NEXT_NAME,
- CONF_ROOM_STATE_NAME,
- DOMAIN,
- )
- @pytest.fixture(autouse=True)
- def auto_enable_custom_integrations(enable_custom_integrations):
- yield
- @pytest.fixture
- def mock_entry():
- return MockConfigEntry(
- domain=DOMAIN,
- data={
- CONF_ROOM_STATE_NAME: "Room State",
- CONF_CURRENT_NAME: "Current",
- CONF_NEXT_NAME: "Next",
- },
- options={CONF_CALDAV_ENABLED: False},
- )
|