Home Assistant Unofficial Reference 2024.12.1
models.py
Go to the documentation of this file.
1 """The sql integration models."""
2 
3 from __future__ import annotations
4 
5 from dataclasses import dataclass
6 
7 from sqlalchemy.orm import scoped_session
8 
9 from homeassistant.core import CALLBACK_TYPE
10 
11 
12 @dataclass(slots=True)
13 class SQLData:
14  """Data for the sql integration."""
15 
16  shutdown_event_cancel: CALLBACK_TYPE
17  session_makers_by_db_url: dict[str, scoped_session]