2022-07-20 10:06:52 +00:00
|
|
|
"""The repairs integration."""
|
2022-07-08 03:49:07 +00:00
|
|
|
from __future__ import annotations
|
|
|
|
|
|
|
|
from homeassistant.core import HomeAssistant
|
2022-08-25 09:32:06 +00:00
|
|
|
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
|
2022-07-08 03:49:07 +00:00
|
|
|
|
2022-07-20 12:00:35 +00:00
|
|
|
__all__ = [
|
|
|
|
"DOMAIN",
|
2022-08-05 10:07:51 +00:00
|
|
|
"ConfirmRepairFlow",
|
2022-07-20 12:00:35 +00:00
|
|
|
"RepairsFlow",
|
|
|
|
]
|
2022-07-08 03:49:07 +00:00
|
|
|
|
|
|
|
|
|
|
|
async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
|
2022-07-20 10:06:52 +00:00
|
|
|
"""Set up Repairs."""
|
2022-07-12 17:26:06 +00:00
|
|
|
hass.data[DOMAIN] = {}
|
|
|
|
|
|
|
|
issue_handler.async_setup(hass)
|
2022-07-08 03:49:07 +00:00
|
|
|
websocket_api.async_setup(hass)
|
|
|
|
|
|
|
|
return True
|