mirror of
https://github.com/home-assistant/core.git
synced 2026-04-17 07:34:07 +01:00
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
20 lines
565 B
Python
20 lines
565 B
Python
"""Test the pjlink integration."""
|
|
|
|
from homeassistant.components.pjlink.const import DEFAULT_PORT
|
|
|
|
from tests.common import HomeAssistant, MockConfigEntry
|
|
|
|
|
|
async def setup_pjlink_entry(hass: HomeAssistant) -> MockConfigEntry:
|
|
"""Set up PJLink integration via config entry."""
|
|
entry = MockConfigEntry(
|
|
domain="pjlink",
|
|
data={"host": "127.0.0.1", "port": DEFAULT_PORT},
|
|
title="test",
|
|
)
|
|
entry.add_to_hass(hass)
|
|
await hass.config_entries.async_setup(entry.entry_id)
|
|
await hass.async_block_till_done()
|
|
|
|
return entry
|