2024-02-04 17:40:44 +00:00
|
|
|
"""Common test tools for Traccar Server."""
|
2024-03-08 13:44:56 +00:00
|
|
|
|
2024-02-04 17:40:44 +00:00
|
|
|
from homeassistant.core import HomeAssistant
|
|
|
|
|
|
|
|
from tests.common import MockConfigEntry
|
|
|
|
|
|
|
|
|
|
|
|
async def setup_integration(hass: HomeAssistant, config_entry: MockConfigEntry) -> None:
|
|
|
|
"""Set up the integration."""
|
|
|
|
config_entry.add_to_hass(hass)
|
|
|
|
|
|
|
|
await hass.config_entries.async_setup(config_entry.entry_id)
|