added support for home assistant postgres database and convenience function to get state of entity
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
"""SQLAlchemy model for the 'states_meta' table in the Home Assistant PostgreSQL database."""
|
||||
|
||||
from sqlalchemy import Column, BigInteger, String
|
||||
|
||||
from .base import Base
|
||||
|
||||
|
||||
class StatesMeta(Base):
|
||||
"""SQLAlchemy model for the 'states_meta' table."""
|
||||
|
||||
__tablename__ = "states_meta"
|
||||
__table_args__ = {"schema": "public"}
|
||||
|
||||
metadata_id = Column(BigInteger, primary_key=True, autoincrement=True)
|
||||
entity_id = Column(String(255), nullable=True)
|
||||
Reference in New Issue
Block a user