init home-assistant
This commit is contained in:
17
home-assistant/homeassistant/components/sql/models.py
Normal file
17
home-assistant/homeassistant/components/sql/models.py
Normal file
@@ -0,0 +1,17 @@
|
||||
"""The sql integration models."""
|
||||
|
||||
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]
|
||||
Reference in New Issue
Block a user