From ead4513915a2c9f29056e7e79f5c76cfa429de38 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Fri, 3 Mar 2023 01:59:27 +0100 Subject: [PATCH] Added optional `unit` column to `RawSensor` entity. --- platypush/entities/sensors.py | 1 + 1 file changed, 1 insertion(+) diff --git a/platypush/entities/sensors.py b/platypush/entities/sensors.py index 84da7affe0..0a2c098681 100644 --- a/platypush/entities/sensors.py +++ b/platypush/entities/sensors.py @@ -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):