mirror of
https://github.com/Electric-Special/ha-core.git
synced 2026-03-21 13:05:42 +01:00
21 lines
610 B
Python
21 lines
610 B
Python
"""The html5 component."""
|
|
|
|
from homeassistant.config_entries import ConfigEntry
|
|
from homeassistant.const import Platform
|
|
from homeassistant.core import HomeAssistant
|
|
from homeassistant.helpers import config_validation as cv, discovery
|
|
|
|
from .const import DOMAIN
|
|
|
|
CONFIG_SCHEMA = cv.config_entry_only_config_schema(DOMAIN)
|
|
|
|
|
|
async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
|
|
"""Set up HTML5 from a config entry."""
|
|
hass.async_create_task(
|
|
discovery.async_load_platform(
|
|
hass, Platform.NOTIFY, DOMAIN, dict(entry.data), {}
|
|
)
|
|
)
|
|
return True
|