mirror of
https://github.com/home-assistant/core.git
synced 2026-02-21 18:38:17 +00:00
17 lines
514 B
Python
17 lines
514 B
Python
"""Test the HTML5 setup."""
|
|
|
|
from homeassistant.config_entries import ConfigEntryState
|
|
from homeassistant.core import HomeAssistant
|
|
|
|
from tests.common import MockConfigEntry
|
|
|
|
|
|
async def test_setup_entry(hass: HomeAssistant, config_entry: MockConfigEntry) -> None:
|
|
"""Test setup of a good config entry."""
|
|
|
|
config_entry.add_to_hass(hass)
|
|
assert await hass.config_entries.async_setup(config_entry.entry_id)
|
|
await hass.async_block_till_done()
|
|
|
|
assert config_entry.state is ConfigEntryState.LOADED
|