Added optional unit column to RawSensor entity.

This commit is contained in:
Fabio Manganiello 2023-03-03 01:59:27 +01:00
parent 94c4e52154
commit ead4513915
Signed by: blacklight
GPG key ID: D90FBA7F76362774

View file

@ -53,6 +53,7 @@ if 'raw_sensor' not in Base.metadata:
If ``is_json`` is ``True``, then ``value`` is a JSON-encoded string
object or array.
"""
unit = Column(String)
@property
def value(self):