Remove decimal places for sensors.

This commit is contained in:
mike-work 2017-04-20 23:18:11 +01:00
parent 2052f58dde
commit b1ce9645ac

View file

@ -32,7 +32,7 @@ class Module(bumblebee.engine.Module):
matching_temp = self._pattern.findall(temperatures) matching_temp = self._pattern.findall(temperatures)
temperature = "unknown" temperature = "unknown"
if matching_temp: if matching_temp:
temperature = matching_temp[self._match_number] temperature = int(float(matching_temp[self._match_number]))
return temperature return temperature