mirror of
https://github.com/home-assistant/core.git
synced 2026-05-17 05:51:33 +01:00
3222472f10
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
19 lines
603 B
Python
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
|