Home Assistant Unofficial Reference 2024.12.1
__init__.py
Go to the documentation of this file.
1 """The blueprint integration."""
2 
3 from homeassistant.core import HomeAssistant
4 from homeassistant.helpers import config_validation as cv
5 from homeassistant.helpers.typing import ConfigType
6 
7 from . import websocket_api
8 from .const import CONF_USE_BLUEPRINT, DOMAIN # noqa: F401
9 from .errors import ( # noqa: F401
10  BlueprintException,
11  BlueprintInUse,
12  BlueprintWithNameException,
13  FailedToLoad,
14  InvalidBlueprint,
15  InvalidBlueprintInputs,
16  MissingInput,
17 )
18 from .models import Blueprint, BlueprintInputs, DomainBlueprints # noqa: F401
19 from .schemas import ( # noqa: F401
20  BLUEPRINT_INSTANCE_FIELDS,
21  BLUEPRINT_SCHEMA,
22  is_blueprint_instance_config,
23 )
24 
25 CONFIG_SCHEMA = cv.empty_config_schema(DOMAIN)
26 
27 
28 async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
29  """Set up the blueprint integration."""
30  websocket_api.async_setup(hass)
31  return True
bool async_setup(HomeAssistant hass, ConfigType config)
Definition: __init__.py:28