1
0
mirror of https://github.com/home-assistant/core.git synced 2026-04-17 07:34:07 +01:00
Files
core/tests/components/pjlink/__init__.py
jtjart a18f3cba32 Add config flow to pjlink (#166073)
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2026-03-28 19:58:00 +01:00

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