2020-11-02 14:00:13 +00:00
|
|
|
"""The blueprint integration."""
|
2022-01-02 16:05:18 +00:00
|
|
|
from homeassistant.core import HomeAssistant
|
|
|
|
from homeassistant.helpers.typing import ConfigType
|
|
|
|
|
2020-11-02 14:00:13 +00:00
|
|
|
from . import websocket_api
|
2021-03-02 08:02:04 +00:00
|
|
|
from .const import DOMAIN # noqa: F401
|
|
|
|
from .errors import ( # noqa: F401
|
2020-11-02 14:00:13 +00:00
|
|
|
BlueprintException,
|
|
|
|
BlueprintWithNameException,
|
|
|
|
FailedToLoad,
|
|
|
|
InvalidBlueprint,
|
|
|
|
InvalidBlueprintInputs,
|
2020-12-01 17:21:36 +00:00
|
|
|
MissingInput,
|
2020-11-02 14:00:13 +00:00
|
|
|
)
|
2021-03-02 08:02:04 +00:00
|
|
|
from .models import Blueprint, BlueprintInputs, DomainBlueprints # noqa: F401
|
|
|
|
from .schemas import is_blueprint_instance_config # noqa: F401
|
2020-11-02 14:00:13 +00:00
|
|
|
|
|
|
|
|
2022-01-02 16:05:18 +00:00
|
|
|
async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
|
2020-11-02 14:00:13 +00:00
|
|
|
"""Set up the blueprint integration."""
|
|
|
|
websocket_api.async_setup(hass)
|
|
|
|
return True
|