Remove decimal places for sensors.
This commit is contained in:
parent
2052f58dde
commit
b1ce9645ac
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue