diff --git a/modules/core/core.py b/modules/core/core.py index 60a6045..a8714c4 100644 --- a/modules/core/core.py +++ b/modules/core/core.py @@ -171,7 +171,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