From b1ce9645ac9f20fbe225ae4dec940391ff0eb5d4 Mon Sep 17 00:00:00 2001 From: mike-work Date: Thu, 20 Apr 2017 23:18:11 +0100 Subject: [PATCH] Remove decimal places for sensors. --- bumblebee/modules/sensors.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bumblebee/modules/sensors.py b/bumblebee/modules/sensors.py index f38bb78..36dabbd 100644 --- a/bumblebee/modules/sensors.py +++ b/bumblebee/modules/sensors.py @@ -32,7 +32,7 @@ class Module(bumblebee.engine.Module): matching_temp = self._pattern.findall(temperatures) temperature = "unknown" if matching_temp: - temperature = matching_temp[self._match_number] + temperature = int(float(matching_temp[self._match_number])) return temperature