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