mirror of
https://github.com/home-assistant/core.git
synced 2026-09-27 01:46:11 -04:00
* Adjust automation to plural triggers/conditions/actions keys * Fix some tests * Adjust websocket tests * Fix search tests * Convert blueprint and blueprint inputs to modern schema * Pass schema when creating Blueprint object * Update tests * Adjust websocket api --------- Co-authored-by: Joostlek <joostlek@outlook.com> Co-authored-by: Erik <erik@montnemery.com>
27 lines
837 B
Python
27 lines
837 B
Python
"""The blueprint integration."""
|
|
|
|
from homeassistant.core import HomeAssistant
|
|
from homeassistant.helpers import config_validation as cv
|
|
from homeassistant.helpers.typing import ConfigType
|
|
|
|
from . import websocket_api
|
|
from .const import CONF_USE_BLUEPRINT, DOMAIN # noqa: F401
|
|
from .errors import ( # noqa: F401
|
|
BlueprintException,
|
|
BlueprintWithNameException,
|
|
FailedToLoad,
|
|
InvalidBlueprint,
|
|
InvalidBlueprintInputs,
|
|
MissingInput,
|
|
)
|
|
from .models import Blueprint, BlueprintInputs, DomainBlueprints # noqa: F401
|
|
from .schemas import BLUEPRINT_SCHEMA, is_blueprint_instance_config # noqa: F401
|
|
|
|
CONFIG_SCHEMA = cv.empty_config_schema(DOMAIN)
|
|
|
|
|
|
async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
|
|
"""Set up the blueprint integration."""
|
|
websocket_api.async_setup(hass)
|
|
return True
|