diff --git a/modules/core/core.py b/modules/core/core.py index 1caf28a..623ce2f 100644 --- a/modules/core/core.py +++ b/modules/core/core.py @@ -173,7 +173,7 @@ class SensorAPI(object): def get_sensor_value(self, id): try: id = int(id) - return int(self.cache.get("sensors")[id].instance.last_value) + return float(self.cache.get("sensors")[id].instance.last_value) except Exception as e: return None