2023-12-13 17:05:37 +01:00
|
|
|
"""Constants and mock for the twinkly component tests."""
|
2020-11-19 12:22:12 -05:00
|
|
|
|
2024-12-22 12:00:24 +01:00
|
|
|
from homeassistant.core import HomeAssistant
|
2020-11-19 12:22:12 -05:00
|
|
|
|
2024-12-22 12:00:24 +01:00
|
|
|
from tests.common import MockConfigEntry
|
2020-11-19 12:22:12 -05:00
|
|
|
|
|
|
|
|
|
2024-12-22 12:00:24 +01:00
|
|
|
async def setup_integration(hass: HomeAssistant, config_entry: MockConfigEntry) -> None:
|
|
|
|
|
"""Fixture for setting up the component."""
|
|
|
|
|
config_entry.add_to_hass(hass)
|
2020-11-19 12:22:12 -05:00
|
|
|
|
2024-12-22 12:00:24 +01:00
|
|
|
await hass.config_entries.async_setup(config_entry.entry_id)
|
|
|
|
|
await hass.async_block_till_done()
|