27 lines
601 B
Python
27 lines
601 B
Python
"""The repairs integration."""
|
|
from __future__ import annotations
|
|
|
|
from homeassistant.core import HomeAssistant
|
|
from homeassistant.helpers.typing import ConfigType
|
|
|
|
from . import issue_handler, websocket_api
|
|
from .const import DOMAIN
|
|
from .issue_handler import ConfirmRepairFlow
|
|
from .models import RepairsFlow
|
|
|
|
__all__ = [
|
|
"DOMAIN",
|
|
"ConfirmRepairFlow",
|
|
"RepairsFlow",
|
|
]
|
|
|
|
|
|
async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
|
|
"""Set up Repairs."""
|
|
hass.data[DOMAIN] = {}
|
|
|
|
issue_handler.async_setup(hass)
|
|
websocket_api.async_setup(hass)
|
|
|
|
return True
|