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 'migration_changes' table in the Home Assistant PostgreSQL database."""
|
||||
|
||||
from sqlalchemy import Column, String, SmallInteger
|
||||
|
||||
from .base import Base
|
||||
|
||||
|
||||
class MigrationChanges(Base):
|
||||
"""SQLAlchemy model for the 'migration_changes' table."""
|
||||
|
||||
__tablename__ = "migration_changes"
|
||||
__table_args__ = {"schema": "public"}
|
||||
|
||||
migration_id = Column(String(255), primary_key=True)
|
||||
version = Column(SmallInteger, nullable=False)
|
||||
Reference in New Issue
Block a user