1
0
mirror of https://github.com/home-assistant/core.git synced 2026-05-17 05:51:33 +01:00
Files
core/tests/components/youless/test_init.py
T
epenet 3222472f10 Use runtime_data in youless (#168694)
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-04-21 12:44:18 +02:00

19 lines
603 B
Python

"""Test the setup of the Youless integration."""
from homeassistant import setup
from homeassistant.components.youless.const import DOMAIN
from homeassistant.config_entries import ConfigEntryState
from homeassistant.core import HomeAssistant
from . import init_component
async def test_async_setup_entry(hass: HomeAssistant) -> None:
"""Check if the setup of the integration succeeds."""
entry = await init_component(hass)
assert await setup.async_setup_component(hass, DOMAIN, {})
assert entry.state is ConfigEntryState.LOADED
assert len(hass.states.async_entity_ids()) == 22