forked from platypush/platypush
Support units on dimmer entities
This commit is contained in:
parent
32330ca7a8
commit
e9c84ff5d4
1 changed files with 2 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
||||||
from sqlalchemy import Column, Integer, ForeignKey, Float
|
from sqlalchemy import Column, Integer, ForeignKey, Float, String
|
||||||
|
|
||||||
from platypush.common.db import Base
|
from platypush.common.db import Base
|
||||||
|
|
||||||
|
@ -17,6 +17,7 @@ if 'dimmer' not in Base.metadata:
|
||||||
max = Column(Float)
|
max = Column(Float)
|
||||||
step = Column(Float, default=1.0)
|
step = Column(Float, default=1.0)
|
||||||
value = Column(Float)
|
value = Column(Float)
|
||||||
|
unit = Column(String)
|
||||||
|
|
||||||
__mapper_args__ = {
|
__mapper_args__ = {
|
||||||
'polymorphic_identity': __tablename__,
|
'polymorphic_identity': __tablename__,
|
||||||
|
|
Loading…
Reference in a new issue