mirror of
https://github.com/home-assistant/core.git
synced 2025-12-25 05:26:47 +00:00
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: Norbert Rittel <norbert@rittel.de> Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
18 lines
464 B
Python
18 lines
464 B
Python
"""Tests for the Fing integration."""
|
|
|
|
from homeassistant.core import HomeAssistant
|
|
|
|
from tests.common import MockConfigEntry
|
|
|
|
|
|
async def init_integration(
|
|
hass: HomeAssistant, config_entry: MockConfigEntry, mocked_fing_agent
|
|
) -> MockConfigEntry:
|
|
"""Set up Fing integration for testing."""
|
|
config_entry.add_to_hass(hass)
|
|
|
|
await hass.config_entries.async_setup(config_entry.entry_id)
|
|
await hass.async_block_till_done()
|
|
|
|
return config_entry
|