platypush/platypush/entities/devices.py

21 lines
400 B
Python

from sqlalchemy import Column, Integer, ForeignKey
from ._base import Entity
class Device(Entity):
__tablename__ = 'device'
id = Column(Integer, ForeignKey(Entity.id), primary_key=True)
__mapper_args__ = {
'polymorphic_identity': __tablename__,
}
@classmethod
@property
def meta(cls):
return {
'icon_class': 'fa-solid fa-gear',
}