2023-04-13 00:24:55 +00:00
|
|
|
"""The sql integration models."""
|
2024-03-08 13:33:51 +00:00
|
|
|
|
2023-04-13 00:24:55 +00:00
|
|
|
from __future__ import annotations
|
|
|
|
|
|
|
|
from dataclasses import dataclass
|
|
|
|
|
|
|
|
from sqlalchemy.orm import scoped_session
|
|
|
|
|
|
|
|
from homeassistant.core import CALLBACK_TYPE
|
|
|
|
|
|
|
|
|
|
|
|
@dataclass(slots=True)
|
|
|
|
class SQLData:
|
|
|
|
"""Data for the sql integration."""
|
|
|
|
|
|
|
|
shutdown_event_cancel: CALLBACK_TYPE
|
|
|
|
session_makers_by_db_url: dict[str, scoped_session]
|